Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
iso8583-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4d7044d2
authored
Apr 28, 2020
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
read_conf.py tidak lagi mewajibkan modul punya init()
1 parent
0e84e6a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
CHANGES.txt
iso8583_web/read_conf.py
CHANGES.txt
View file @
4d7044d
0.1.5 2020-04-28
----------------
- read_conf.py tidak lagi mewajibkan setiap modul punya init()
0.1.4 2020-04-22
----------------
- Parser.run() mencatat kesalahan tak terduga
...
...
iso8583_web/read_conf.py
View file @
4d7044d
...
...
@@ -123,7 +123,11 @@ def read_conf(conf_file):
if
conf
.
has_section
(
module_section
):
for
key
in
conf
.
options
(
module_section
):
cfg
[
key
]
=
conf
.
get
(
module_section
,
key
)
cfg
[
'module_obj'
]
.
init
(
cfg
)
try
:
f_init
=
getattr
(
cfg
[
'module_obj'
],
'init'
)
f_init
(
cfg
)
except
AttributeError
:
pass
append_others
(
cfg
,
conf
,
section
)
if
cfg
[
'listen'
]:
if
port
not
in
listen_ports
:
...
...
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