diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-08-17 16:25:49 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-08-17 16:25:49 +0200 |
commit | 89e803a1e8364a3d32dcdb2ff445959723b974b1 (patch) | |
tree | a167912b0c1b5337532c7a44c3874cc753acb680 /module/web/utils.py | |
parent | renamed default_mobile to mobile (diff) | |
download | pyload-89e803a1e8364a3d32dcdb2ff445959723b974b1.tar.xz |
completed renaming
Diffstat (limited to 'module/web/utils.py')
-rw-r--r-- | module/web/utils.py | 5 |
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) |