summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-06 19:04:08 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-06 19:04:08 +0200
commit5d8963a40c03c9e6f613883f3a0d743892464f01 (patch)
treef5320f2ea78b33bad9bea6c0b145acfc57bd54f5 /pyLoadCore.py
parentfixes (diff)
downloadpyload-5d8963a40c03c9e6f613883f3a0d743892464f01.tar.xz
settings page working
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index d8fb1c965..86e15b19f 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -422,13 +422,19 @@ class ServerMethods():
downloads.append(download)
return downloads
- def get_conf_val(self, cat, var):
+ def get_conf_val(self, cat, var, sec="core"):
""" get config value """
- return self.core.config[cat][var]
+ if sec == "core":
+ return self.core.config[cat][var]
+ elif sec == "plugin":
+ return self.core.config.getPlugin(cat,var)
- def set_conf_val(self, cat, opt, val):
+ def set_conf_val(self, cat, opt, val, sec="core"):
""" set config value """
- self.core.config[str(cat)][str(opt)] = val
+ if sec == "core":
+ self.core.config[str(cat)][str(opt)] = val
+ elif sec == "plugin":
+ self.core.config.setPlugin(cat, opt, val)
def get_config(self):
""" gets complete config """