summaryrefslogtreecommitdiffstats
path: root/module/web/webinterface.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-08-02 15:17:24 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-08-02 15:17:24 +0200
commit58f38f399387b44b956e785e1d578d0f621354e6 (patch)
tree8e9a6bb9f659db8f58d73b0c416572a8212abfcf /module/web/webinterface.py
parentyoutube, new file format (diff)
downloadpyload-58f38f399387b44b956e785e1d578d0f621354e6.tar.xz
fixes, cleanup, summary for each package
Diffstat (limited to 'module/web/webinterface.py')
-rw-r--r--module/web/webinterface.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/web/webinterface.py b/module/web/webinterface.py
index e54c8b137..4d07c436e 100644
--- a/module/web/webinterface.py
+++ b/module/web/webinterface.py
@@ -29,7 +29,7 @@ PYLOAD_DIR = abspath(join(PROJECT_DIR, "..", ".."))
sys.path.append(PYLOAD_DIR)
from module import InitHomeDir
-from module.utils import decode
+from module.utils import decode, formatSize
import bottle
from bottle import run, app
@@ -81,6 +81,7 @@ env.filters["path_make_relative"] = path_make_relative
env.filters["path_make_absolute"] = path_make_absolute
env.filters["decode"] = decode
env.filters["type"] = lambda x: str(type(x))
+env.filters["formatsize"] = formatSize
translation = gettext.translation("django", join(PYLOAD_DIR, "locale"),