Rework XML parser: part 1
This is the first step of the parser refactoring: here we change the configuration, next step will change data saving.
This commit is contained in:
parent
92530ef1b2
commit
c560e13f24
18 changed files with 370 additions and 122 deletions
|
|
@ -16,7 +16,7 @@ PASSWD_FILE = None
|
|||
|
||||
def load(context):
|
||||
global PASSWD_FILE
|
||||
if not context.config or not context.config.hasAttribute("passwd"):
|
||||
if not context.config or "passwd" not in context.config:
|
||||
print("No passwd file given")
|
||||
return None
|
||||
PASSWD_FILE = context.config["passwd"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue