summaryrefslogtreecommitdiffstats
path: root/module/web/json_app.py
diff options
context:
space:
mode:
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]})