summaryrefslogtreecommitdiffstats
path: root/module/web/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/utils.py')
-rw-r--r--module/web/utils.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/module/web/utils.py b/module/web/utils.py
index cb95b1cf5..7afa5f203 100644
--- a/module/web/utils.py
+++ b/module/web/utils.py
@@ -17,16 +17,15 @@
"""
from bottle import request, HTTPError, redirect, ServerAdapter
-from webinterface import env, TEMPLATE
+from webinterface import env, THEME
from module.Api import has_permission, PERMS, ROLE
-def render_to_response(name, args={}, proc=[]):
+def render_to_response(file, args={}, proc=[]):
for p in proc:
args.update(p())
-
- t = env.get_template(TEMPLATE + "/" + name)
- return t.render(**args)
+ path = "%s/tml/%s" % (THEME, file)
+ return env.get_template(path).render(**args)
def parse_permissions(session):