diff options
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index 5014ed264..ef042e4ec 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -527,7 +527,13 @@ class ServerMethods(): return self.core.config[cat][var] else: raise Exception("not allowed!") - + + def set_conf_val(self, cat, opt, val): + if opt not in ("username", "password"): + self.core.xmlconfig.set(cat, opt, val) + else: + raise Exception("not allowed!") + def get_config(self): d = deepcopy(self.core.xmlconfig.getConfigDict()) del d["remote"]["username"] |