diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-04 14:40:38 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-04 14:40:38 +0200 |
commit | c923c14901a2e9215c42f072607a1cc3ffe675ab (patch) | |
tree | 3dc3ae59a2f5a9dc479af7621ead7cda2f9e3fb5 /module/web | |
parent | more fixing (diff) | |
download | pyload-c923c14901a2e9215c42f072607a1cc3ffe675ab.tar.xz |
some fixes
Diffstat (limited to 'module/web')
-rw-r--r-- | module/web/ajax/views.py | 2 | ||||
-rw-r--r-- | module/web/pyload/views.py | 4 | ||||
-rw-r--r-- | module/web/templates/default/settings.html | 4 |
3 files changed, 4 insertions, 6 deletions
diff --git a/module/web/ajax/views.py b/module/web/ajax/views.py index 02c135bfe..2c807f6c9 100644 --- a/module/web/ajax/views.py +++ b/module/web/ajax/views.py @@ -88,7 +88,6 @@ def remove_link(request, id): settings.PYLOAD.del_links([int(id)]) return JsonResponse("sucess") except Exception, e: - print_exc() return HttpResponseServerError() @permission('pyload.can_see_dl') @@ -124,7 +123,6 @@ def links(request): data['ids'] = ids return JsonResponse(data) except Exception, e: - print e return HttpResponseServerError() @permission('pyload.can_see_dl') diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py index f6175f338..d75b7a485 100644 --- a/module/web/pyload/views.py +++ b/module/web/pyload/views.py @@ -215,7 +215,7 @@ def config(request): for key, option in section.iteritems(): if key == "desc": continue - if ";" in option["typ"]: - option["list"] = option["typ"].split(";") + 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])) diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html index d9aef5303..48ae85170 100644 --- a/module/web/templates/default/settings.html +++ b/module/web/templates/default/settings.html @@ -44,13 +44,13 @@ <label for="{{skey}}|{{okey}}" style="color:#424242;"> {{option.desc}} - {% ifequal option.typ "bool" %} + {% ifequal option.type "bool" %} <select id="{{skey}}|{{okey}}" name="{{skey}}|{{okey}}"> <option {% if option.value %} selected="selected" {% endif %}value="True">{% trans "on" %}</option> <option {% if not option.value %} selected="selected" {% endif %}value="False">{% trans "off" %}</option> </select> {% else %} - {% if option.typ|contains:";" %} + {% if option.type|contains:";" %} <select id="{{skey}}|{{okey}}" name="{{skey}}|{{okey}}"> {% for entry in option.list %} <option {% ifequal option.value entry %} selected="selected" {% endifequal %}>{{entry}}</option> |