summaryrefslogtreecommitdiffstats
path: root/module/web/pyload
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-06 12:57:11 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-06 12:57:11 +0200
commit576be3536a4a9432f4127fbad912d32e0ca7b53c (patch)
treea367c8ada1d5d887549ab636b9de38882c2a5965 /module/web/pyload
parentGregy's settings page + TheBrayns new icons (diff)
downloadpyload-576be3536a4a9432f4127fbad912d32e0ca7b53c.tar.xz
webif plugin config preparations
Diffstat (limited to 'module/web/pyload')
-rw-r--r--module/web/pyload/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py
index b93ed603e..0c04962fa 100644
--- a/module/web/pyload/views.py
+++ b/module/web/pyload/views.py
@@ -8,6 +8,7 @@ from os.path import isdir
from os.path import isfile
from os.path import join
from urllib import unquote
+from itertools import chain
from django.conf import settings
from django.contrib.auth.decorators import login_required
@@ -214,6 +215,7 @@ def collector(request):
@check_server
def config(request):
conf = settings.PYLOAD.get_config()
+ plugin = settings.PYLOAD.get_plugin_config()
if request.META.get('REQUEST_METHOD', "GET") == "POST":
@@ -245,11 +247,11 @@ def config(request):
return render_to_response(join(settings.TEMPLATE, 'settings.html'), RequestContext(request, {'conf': {}, 'errors': messages}, [status_proc]))
- for section in conf.itervalues():
+ for section in chain(conf.itervalues(), plugin.itervalues()):
for key, option in section.iteritems():
if key == "desc": continue
if ";" in option["type"]:
option["list"] = option["type"].split(";")
- return render_to_response(join(settings.TEMPLATE, 'settings.html'), RequestContext(request, {'conf': conf, 'messages': []}, [status_proc]))
+ return render_to_response(join(settings.TEMPLATE, 'settings.html'), RequestContext(request, {'conf': conf, 'plugin': plugin, 'messages': []}, [status_proc]))