summaryrefslogtreecommitdiffstats
path: root/module/webui/app/utils.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-08-28 04:51:53 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-08-28 04:51:53 +0200
commit653d637b4ee1aa6fd112c11bf082883c3252c928 (patch)
tree644f2f253d9a9ad16eaf75a534b9f21215237fd2 /module/webui/app/utils.py
parentMove ServerThread and PluginThread to threads directory (diff)
downloadpyload-653d637b4ee1aa6fd112c11bf082883c3252c928.tar.xz
[webui] Improve and fix
Diffstat (limited to 'module/webui/app/utils.py')
-rw-r--r--module/webui/app/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/webui/app/utils.py b/module/webui/app/utils.py
index 5bb10e478..1ba08e9a7 100644
--- a/module/webui/app/utils.py
+++ b/module/webui/app/utils.py
@@ -15,6 +15,9 @@
@author: RaNaN
"""
+
+from os.path import join
+
from bottle import request, HTTPError, redirect, ServerAdapter
from module.webui import env, THEME
@@ -24,7 +27,7 @@ from module.Api import has_permission, PERMS, ROLE
def render_to_response(file, args={}, proc=[]):
for p in proc:
args.update(p())
- path = "%s/tml/%s" % (THEME, file)
+ path = join(THEME, "tml", file)
return env.get_template(path).render(**args)