diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-09 23:29:24 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-09 23:29:24 +0100 |
commit | aa78d90803a68e41ea663adb623c859cae3ad91e (patch) | |
tree | c793e30df9fccdf350fcd299e70fb3c14fabc36a /module/web/webinterface.py | |
parent | captcha manager fix, toggle reconnect (diff) | |
download | pyload-aa78d90803a68e41ea663adb623c859cae3ad91e.tar.xz |
new config page, mootools 1.3, removed old templates
Diffstat (limited to 'module/web/webinterface.py')
-rw-r--r-- | module/web/webinterface.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/web/webinterface.py b/module/web/webinterface.py index 0e3c59730..b5ace142c 100644 --- a/module/web/webinterface.py +++ b/module/web/webinterface.py @@ -29,6 +29,7 @@ PYLOAD_DIR = abspath(join(PROJECT_DIR, "..", "..")) sys.path.append(PYLOAD_DIR) from module import InitHomeDir +from module.utils import decode import bottle from bottle import run, app @@ -67,7 +68,7 @@ if not exists(cache): bcc = FileSystemBytecodeCache(cache, '%s.cache') loader = PrefixLoader({ - "default": FileSystemLoader(join(PROJECT_DIR, "templates", "jinja", "default")) + "default": FileSystemLoader(join(PROJECT_DIR, "templates", "default")) }) env = Environment(loader=loader, extensions=['jinja2.ext.i18n'], trim_blocks=True, auto_reload=False, bytecode_cache=bcc) @@ -78,6 +79,7 @@ env.filters["truncate"] = truncate env.filters["date"] = date env.filters["path_make_relative"] = path_make_relative env.filters["path_make_absolute"] = path_make_absolute +env.filters["decode"] = decode translation = gettext.translation("django", join(PROJECT_DIR, "locale"), |