From 89e803a1e8364a3d32dcdb2ff445959723b974b1 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 17 Aug 2012 16:25:49 +0200 Subject: completed renaming --- module/web/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/web/utils.py') 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) -- cgit v1.2.3