diff options
author | 2011-12-08 17:41:14 +0100 | |
---|---|---|
committer | 2011-12-08 17:41:14 +0100 | |
commit | 8c9603722b027764a5d85e2dee7b7f3d2983b362 (patch) | |
tree | ab9725d631f442f71ae21b3e500ece0f74914f42 /module/web/pyload_app.py | |
parent | closed #450 (diff) | |
download | pyload-8c9603722b027764a5d85e2dee7b7f3d2983b362.tar.xz |
fixed deprecation warnings
Diffstat (limited to 'module/web/pyload_app.py')
-rw-r--r-- | module/web/pyload_app.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py index 9612e495e..df4a4b3d4 100644 --- a/module/web/pyload_app.py +++ b/module/web/pyload_app.py @@ -83,7 +83,7 @@ def error500(error): error.traceback.replace("\n", "<br>") if error.traceback else "No Traceback"]) # render js -@route("/media/js/:path#.+\.js#") +@route("/media/js/<path:re:.+\.js>") def js_dynamic(path): response.headers['Expires'] = time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime(time.time() + 60 * 60 * 24 * 2)) @@ -100,7 +100,7 @@ def js_dynamic(path): except: return HTTPError(404, "Not Found") -@route('/media/:path#.+#') +@route('/media/<path:path>') def server_static(path): response.headers['Expires'] = time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime(time.time() + 60 * 60 * 24 * 7)) @@ -220,7 +220,7 @@ def downloads(): return render_to_response('downloads.html', {'files': data}, [pre_processor]) -@route("/downloads/get/:path#.+#") +@route("/downloads/get/<path:re:.+>") @login_required("DOWNLOAD") def get_download(path): path = unquote(path).decode("utf8") |