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 aea2a355
authored
Jun 10, 2024
by
Tatang S
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update report jasper for oracle
1 parent
0ea7ef58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
opensipkd/base/tools/report.py
opensipkd/base/tools/report.py
View file @
aea2a35
...
@@ -67,11 +67,13 @@ def jasper_export(input_file, output_file=None, schema=None,
...
@@ -67,11 +67,13 @@ def jasper_export(input_file, output_file=None, schema=None,
'password'
:
db_password
,
'password'
:
db_password
,
'host'
:
db_host
,
'host'
:
db_host
,
'database'
:
db_name
,
'database'
:
db_name
,
'db_sid'
:
db_name
,
# for oracle: added by Tatang
'schema'
:
db_schema
,
'schema'
:
db_schema
,
'port'
:
db_port
,
'port'
:
db_port
,
'jdbc_dir'
:
jdbc_dir
,
'jdbc_dir'
:
jdbc_dir
,
'jdbc_driver'
:
jdbc_driver
,
'jdbc_driver'
:
jdbc_driver
,
}
}
pyreportjasper
=
PyReportJasper
()
pyreportjasper
=
PyReportJasper
()
# log.info(input_file)
# log.info(input_file)
# log.info(output_file)
# log.info(output_file)
...
@@ -86,6 +88,7 @@ def jasper_export(input_file, output_file=None, schema=None,
...
@@ -86,6 +88,7 @@ def jasper_export(input_file, output_file=None, schema=None,
parameters
=
parameters
,
parameters
=
parameters
,
locale
=
'en_US'
locale
=
'en_US'
)
)
# pyreportjasper.compile(write_jasper=True)
# pyreportjasper.compile(write_jasper=True)
pyreportjasper
.
process_report
()
pyreportjasper
.
process_report
()
output_files
=
[
"."
.
join
([
output_file
,
f
])
for
f
in
output_formats
]
output_files
=
[
"."
.
join
([
output_file
,
f
])
for
f
in
output_formats
]
...
...
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