diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-11 20:57:48 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-11 20:57:48 +0200 |
commit | 88185ee505aab68a7352ee0bb414ee5e8cf19ccf (patch) | |
tree | 5185c3dbdfa04a2ed1134a7766c58c641cc9f410 /module/web | |
parent | revert unintentional changes (diff) | |
download | pyload-88185ee505aab68a7352ee0bb414ee5e8cf19ccf.tar.xz |
comment out filemanager
Diffstat (limited to 'module/web')
-rw-r--r-- | module/web/json_app.py | 12 | ||||
-rw-r--r-- | module/web/pyload_app.py | 16 | ||||
-rw-r--r-- | module/web/templates/default/base.html | 6 | ||||
-rw-r--r-- | module/web/templates/default/home.html | 6 |
4 files changed, 21 insertions, 19 deletions
diff --git a/module/web/json_app.py b/module/web/json_app.py index 4b9c91634..d35ca1ad7 100644 --- a/module/web/json_app.py +++ b/module/web/json_app.py @@ -426,8 +426,8 @@ def change_password(): print "Wrong password" return HTTPError() -@route("/json/filemanager/rename", method="POST") -@login_required('filemanager') +#@route("/json/filemanager/rename", method="POST") +#@login_required('filemanager') def rename_dir(): try: path = decode(request.forms.get("path")) @@ -446,8 +446,8 @@ def rename_dir(): return HTTPError() -@route("/json/filemanager/delete", method="POST") -@login_required('filemanager') +#@route("/json/filemanager/delete", method="POST") +#@login_required('filemanager') def delete_dir(): try: try: @@ -463,8 +463,8 @@ def delete_dir(): return HTTPError() -@route("/json/filemanager/mkdir", method="POST") -@login_required('filemanager') +#@route("/json/filemanager/mkdir", method="POST") +#@login_required('filemanager') def make_dir(): try: path = decode(request.forms.get("path")) 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") diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index 40f002a14..30c3a0414 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -225,9 +225,9 @@ function AddBox(){ <li {{ selected('downloads') }}>
<a href="/downloads/" title=""><img src="/media/default/img/head-menu-development.png" alt="" /> {{_("Downloads")}}</a>
</li>
- <li {{ selected('filemanager') }}>
- <a href="/filemanager/" title=""><img src="/media/default/img/head-menu-download.png" alt="" /> {{_("FileManager")}}</a>
- </li>
+{# <li {{ selected('filemanager') }}>#}
+{# <a href="/filemanager/" title=""><img src="/media/default/img/head-menu-download.png" alt="" /> {{_("FileManager")}}</a>#}
+{# </li>#}
<li {{ selected('logs', True) }}>
<a href="/logs/" class="action index" accesskey="x" rel="nofollow"><img src="/media/default/img/head-menu-index.png" alt="" />{{_("Logs")}}</a>
</li>
diff --git a/module/web/templates/default/home.html b/module/web/templates/default/home.html index 927287dfc..1239d381d 100644 --- a/module/web/templates/default/home.html +++ b/module/web/templates/default/home.html @@ -218,9 +218,9 @@ var LinkEntry = new Class({ <li>
<a href="/downloads/" title=""><img src="/media/default/img/head-menu-development.png" alt="" /> {{_("Downloads")}}</a>
</li>
-<li>
- <a href="/filemanager/" title=""><img src="/media/default/img/head-menu-download.png" alt="" /> {{_("FileManager")}}</a>
-</li>
+{#<li>#}
+{# <a href="/filemanager/" title=""><img src="/media/default/img/head-menu-download.png" alt="" /> {{_("FileManager")}}</a>#}
+{#</li>#}
<li class="right">
<a href="/logs/" class="action index" accesskey="x" rel="nofollow"><img src="/media/default/img/head-menu-index.png" alt="" />{{_("Logs")}}</a>
</li>
|