summaryrefslogtreecommitdiffstats
path: root/module/web/json_app.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-14 19:42:27 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-14 19:42:27 +0200
commit4612984d4bd929f814a56118620faa02cbf74577 (patch)
treee3c2a158e5dfcee061f18e6edf2975c184f8d941 /module/web/json_app.py
parentnew DLC plugins, adapted irc interface - needs testing (diff)
downloadpyload-4612984d4bd929f814a56118620faa02cbf74577.tar.xz
fixed config on webif + show description
Diffstat (limited to 'module/web/json_app.py')
-rw-r--r--module/web/json_app.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/module/web/json_app.py b/module/web/json_app.py
index bc95b5ffd..91c33c622 100644
--- a/module/web/json_app.py
+++ b/module/web/json_app.py
@@ -356,15 +356,17 @@ def restart_failed():
def load_config(category, section):
conf = None
if category == "general":
- conf = PYLOAD.getConfig()
+ conf = PYLOAD.getConfigDict()
elif category == "plugin":
- conf = PYLOAD.getPluginConfig()
+ conf = PYLOAD.getPluginConfigDict()
- for option in conf[section].items:
- if ";" in option.type:
- option.type = option.type.split(";")
+ for key, option in conf[section].iteritems():
+ if key in ("desc","outline"): continue
- option.value = decode(option.value)
+ if ";" in option["type"]:
+ option["list"] = option["type"].split(";")
+
+ option["value"] = decode(option["value"])
return render_to_response("settings_item.html", {"skey": section, "section": conf[section]})