summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-04-10 15:35:46 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-04-10 15:35:46 +0200
commit184bb4afd35bb84e8163ab0bf536886197ab91c8 (patch)
treea0fa842be2daf3537b7e0719cdb37ff523ee8ae9
parent_.-:Package Folders:-._ (diff)
downloadpyload-184bb4afd35bb84e8163ab0bf536886197ab91c8.tar.xz
set_conf fix
-rw-r--r--module/web/pyload/views.py2
-rw-r--r--module/web/templates/default/settings.html5
-rwxr-xr-xpyLoadCore.py2
3 files changed, 4 insertions, 5 deletions
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py
index 388184f24..47ef0a864 100644
--- a/module/web/pyload/views.py
+++ b/module/web/pyload/views.py
@@ -197,7 +197,7 @@ def config(request):
messages.append("")
messages += errors
else:
- messages.append(_("All options set correctly."))
+ messages.append(_("All options were set correctly."))
return render_to_response(join(settings.TEMPLATE, 'settings.html'), RequestContext(request, {'conf': {}, 'errors': messages}, [status_proc]))
diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html
index 4d2d2a591..b131df92f 100644
--- a/module/web/templates/default/settings.html
+++ b/module/web/templates/default/settings.html
@@ -36,13 +36,12 @@
{% for skey, section in conf.items %}
<fieldset>
- <legend>
+ <legend style="font-size:0.8cm;color:darkblue;background-color:lightgrey;round">
{{section.name}}
</legend>
-
{% for okey, option in section.options.items %}
- <label for="{{skey}}|{{okey}}">
+ <label for="{{skey}}|{{okey}}" style="color:#424242;">
{{option.name}}
{% ifequal option.type "bool" %}
<select id="{{skey}}|{{okey}}" name="{{skey}}|{{okey}}">
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 5dc8d00b9..ac4d387c5 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -529,7 +529,7 @@ class ServerMethods():
def set_conf_val(self, cat, opt, val):
if opt not in ("username", "password"):
- self.core.xmlconfig.set(cat, opt, val)
+ self.core.config[str(cat)][str(opt)] = val
else:
raise Exception("not allowed!")