diff options
-rw-r--r-- | module/XMLConfigParser.py | 3 | ||||
-rwxr-xr-x | pyLoadCore.py | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/module/XMLConfigParser.py b/module/XMLConfigParser.py index ea664e221..bde46afe5 100644 --- a/module/XMLConfigParser.py +++ b/module/XMLConfigParser.py @@ -112,6 +112,9 @@ class XMLConfigParser(): def getConfig(self): return Config(self) + + def getConfigDict(self): + return self.config def set(self, section, data, value): root = self.root diff --git a/pyLoadCore.py b/pyLoadCore.py index c2cf6d829..5c659e538 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -465,8 +465,11 @@ class ServerMethods(): raise Exception("not allowed!") def get_config(self): - pass - + d = self.core.xmlconfig.getConfigDict() + del d["remote"]["username"] + del d["remote"]["password"] + return d + def pause_server(self): self.core.thread_list.pause = True |