summaryrefslogtreecommitdiffstats
path: root/module/web/utils.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-08-17 16:25:49 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-08-17 16:25:49 +0200
commit89e803a1e8364a3d32dcdb2ff445959723b974b1 (patch)
treea167912b0c1b5337532c7a44c3874cc753acb680 /module/web/utils.py
parentrenamed default_mobile to mobile (diff)
downloadpyload-89e803a1e8364a3d32dcdb2ff445959723b974b1.tar.xz
completed renaming
Diffstat (limited to 'module/web/utils.py')
-rw-r--r--module/web/utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/web/utils.py b/module/web/utils.py
index 1a15a8a00..d0c782b68 100644
--- a/module/web/utils.py
+++ b/module/web/utils.py
@@ -19,13 +19,14 @@
import re
from bottle import request, HTTPError, redirect, ServerAdapter
-from webinterface import env, TEMPLATE, TEMPLATE_MOBILE, PYLOAD
+from webinterface import env, TEMPLATE, PYLOAD
+
# TODO: useful but needs a rewrite, too
def render_to_response(name, args={}, proc=[]):
for p in proc:
args.update(p())
if is_mobile():
- t = env.get_or_select_template((TEMPLATE_MOBILE + "/" + name,"default_mobile/" + name))
+ t = env.get_or_select_template(("mobile/" + name,))
else:
t = env.get_or_select_template((TEMPLATE + "/" + name, "default/" + name))
return t.render(**args)