Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3aece825
authored
Aug 05, 2024
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'latest' of
https://git.opensipkd.com/aa.gusti/opensipkd-base
into latest
2 parents
ee40039a
4ac4975a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
opensipkd/base/tools/report.py
opensipkd/base/views/templates/base3.1.pt
opensipkd/base/tools/report.py
View file @
3aece82
...
...
@@ -28,7 +28,7 @@ def jasper_compile(input_file):
def
jasper_export
(
input_file
,
output_file
=
None
,
schema
=
None
,
output_formats
=
[
"pdf"
],
dburl
=
"sqlalchemy.url"
,
parameters
=
{},
db_schema
=
None
):
parameters
=
{},
db_schema
=
None
,
report_locale
=
"en_US"
):
db
=
get_params
(
dburl
)
.
split
(
"@"
)
db_driver
,
db_user
,
db_password
=
db
[
0
]
.
split
(
':'
)
db_servers
,
db_name
=
db
[
1
]
.
split
(
'/'
)
...
...
@@ -67,11 +67,13 @@ def jasper_export(input_file, output_file=None, schema=None,
'password'
:
db_password
,
'host'
:
db_host
,
'database'
:
db_name
,
'db_sid'
:
db_name
,
# for oracle: added by Tatang
'schema'
:
db_schema
,
'port'
:
db_port
,
'jdbc_dir'
:
jdbc_dir
,
'jdbc_driver'
:
jdbc_driver
,
}
pyreportjasper
=
PyReportJasper
()
# log.info(input_file)
# log.info(output_file)
...
...
@@ -84,8 +86,9 @@ def jasper_export(input_file, output_file=None, schema=None,
db_connection
=
conn
,
output_formats
=
output_formats
,
parameters
=
parameters
,
locale
=
'en_US'
locale
=
report_locale
)
# pyreportjasper.compile(write_jasper=True)
pyreportjasper
.
process_report
()
output_files
=
[
"."
.
join
([
output_file
,
f
])
for
f
in
output_formats
]
...
...
opensipkd/base/views/templates/base3.1.pt
View file @
3aece82
...
...
@@ -281,8 +281,6 @@
<metal:js
define-slot=
"js_files"
></metal:js>
<!-- Define Script-->
<script
metal:define-slot=
"scripts"
></script>
<!-- End isi Script-->
<!-- MAIN PANEL -->
<div
id=
"main"
role=
"main"
>
...
...
@@ -325,5 +323,8 @@
<!-- END MAIN CONTENT -->
</div>
<!-- END MAIN PANEL -->
<!-- Define Script-->
<script
metal:define-slot=
"scripts"
></script>
</body>
</html>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment