summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-04-03 11:06:18 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-04-03 11:06:18 +0200
commit44941dd9b11d9140589f7b1eacb9baf2a82d4c8b (patch)
treedd5c3ea532746bb6eae3ff9b7991165b6e5254af /pyLoadCore.py
parentmerged (diff)
downloadpyload-44941dd9b11d9140589f7b1eacb9baf2a82d4c8b.tar.xz
webif settings page
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py8
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"]