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 bf2498c5
authored
Jun 04, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perubahan ke base 5
1 parent
08d19707
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
opensipkd/base/__init__.py
opensipkd/base/__init__.py
View file @
bf2498c
...
...
@@ -821,9 +821,11 @@ class BaseApp():
if
p
[
"children"
]:
self
.
route_children
(
p
[
"children"
],
row
)
def
route_from_csv
(
self
,
config
,
get_file
=
get_route_file
,
paket
=
"opensipkd.base.views"
):
def
route_from_csv
(
self
,
config
,
paket
=
"opensipkd.base.views"
):
"""
Get File tidak digunakan lagi
gunakan self.base_dir untuk mendapatkan path pada saat init
self.base_dir = os.path.split(__file__)[0]
"""
with
self
.
get_route_file
(
"routes.csv"
)
as
f
:
rows
=
csv
.
DictReader
(
f
)
...
...
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