diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-04-03 11:06:18 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-04-03 11:06:18 +0200 |
commit | 44941dd9b11d9140589f7b1eacb9baf2a82d4c8b (patch) | |
tree | dd5c3ea532746bb6eae3ff9b7991165b6e5254af /pyLoadCore.py | |
parent | merged (diff) | |
download | pyload-44941dd9b11d9140589f7b1eacb9baf2a82d4c8b.tar.xz |
webif settings page
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"] |