summaryrefslogtreecommitdiffstats
path: root/module/web/pyload_app.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-11 20:57:48 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-11 20:57:48 +0200
commit88185ee505aab68a7352ee0bb414ee5e8cf19ccf (patch)
tree5185c3dbdfa04a2ed1134a7766c58c641cc9f410 /module/web/pyload_app.py
parentrevert unintentional changes (diff)
downloadpyload-88185ee505aab68a7352ee0bb414ee5e8cf19ccf.tar.xz
comment out filemanager
Diffstat (limited to 'module/web/pyload_app.py')
-rw-r--r--module/web/pyload_app.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py
index 47e80c96a..7857f2207 100644
--- a/module/web/pyload_app.py
+++ b/module/web/pyload_app.py
@@ -183,11 +183,13 @@ def downloads():
'files': []
}
- for item in sorted(listdir(root)):
+ items = [decode(x) for x in listdir(root)]
+
+ for item in sorted(items):
if isdir(join(root, item)):
folder = {
- 'name': decode(item),
- 'path': decode(item),
+ 'name': item,
+ 'path': item,
'files': []
}
for file in sorted(listdir(join(root, item))):
@@ -221,8 +223,8 @@ def get_download(path):
return HTTPError(404, "File not Found.")
-@route("/filemanager")
-@login_required('filemanager')
+#@route("/filemanager")
+#@login_required('filemanager')
def filemanager():
root = PYLOAD.get_conf_val("general", "download_folder")
@@ -269,8 +271,8 @@ def iterate_over_dir(root, dir):
return out
-@route("/filemanager/get_dir", "POST")
-@login_required('filemanager')
+#@route("/filemanager/get_dir", "POST")
+#@login_required('filemanager')
def folder():
path = request.forms.get("path").decode("utf8", "ignore")
name = request.forms.get("name").decode("utf8", "ignore")