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 52ad5591
authored
Feb 21, 2026
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refactor: Update config scanning to include current package and clean up imports in report.py
1 parent
fd3e51ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
opensipkd/base/__init__.py
opensipkd/base/tools/report.py
opensipkd/base/__init__.py
View file @
52ad559
...
...
@@ -336,7 +336,7 @@ def main(global_config, **settings):
BASE_CLASS
.
route_from_csv
(
config
,
filename
=
routes_file
)
BASE_CLASS
.
route_from_list
(
config
)
BASE_CLASS
.
static_view
(
config
,
settings
=
settings
)
config
.
scan
()
config
.
scan
(
"."
)
# _logging.debug(config)
return
config
.
make_wsgi_app
()
...
...
opensipkd/base/tools/report.py
View file @
52ad559
import
os
import
logging
from
pyreportjasper
import
PyReportJasper
from
opensipkd.tools
import
get_random_string
from
opensipkd.base
import
get_settings
,
get_params
from
platform
import
python_version
import
logging
import
os
from
opensipkd.tools
import
get_random_string
from
opensipkd.tools.report
import
*
from
opensipkd.base
import
get_params
log
=
logging
.
getLogger
(
__name__
)
log
.
warning
(
"Opensipkd.base.tools.pbb depreciated use opensipkd.tools.pbb"
)
# -*- coding: utf-8 -*-
db_driver_port
=
{
# "jdbc:postgresql://localhost:5432/pjdl_ciamis"
"postgresql"
:
[
"postgres"
,
"5432"
,
"org.postgresql.Driver"
,
],
"oracle"
:
[
"oracle"
,
"1521"
,
"oracle.jdbc.driver.OracleDriver"
],
...
...
@@ -19,10 +17,6 @@ db_driver_port = {
def
jasper_compile
(
input_file
):
# REPORTS_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'reports')
# input_file = os.path.join(input_file)
# file_ext = os.path.splitext(input_file)
# output_file = os.path.join(REPORTS_DIR, 'csv')
pyreportjasper
=
PyReportJasper
()
pyreportjasper
.
compile
(
write_jasper
=
True
)
...
...
@@ -32,9 +26,7 @@ def jasper_db_conn(db_schema=None, dburl="sqlalchemy.url"):
db_driver
,
db_user
,
db_password
=
db
[
0
]
.
split
(
':'
)
db_servers
,
db_name
=
db
[
1
]
.
split
(
'/'
)
# db_user, db_password = db_users.split(":")
# db_host = db_server
# if not jdbc_dir:
# java_home = os.getenv("JAVA_HOME")
# jdbc_dir = os.path.join(java_home, 'lib', db_driver_port[db_driver][2])
...
...
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