summaryrefslogtreecommitdiffstats
path: root/pyload/webui/app
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/webui/app')
-rw-r--r--pyload/webui/app/cnl.py2
-rw-r--r--pyload/webui/app/utils.py5
2 files changed, 7 insertions, 0 deletions
diff --git a/pyload/webui/app/cnl.py b/pyload/webui/app/cnl.py
index dee0f2341..51767033f 100644
--- a/pyload/webui/app/cnl.py
+++ b/pyload/webui/app/cnl.py
@@ -16,6 +16,8 @@ except Exception:
def local_check(function):
+
+
def _view(*args, **kwargs):
if request.environ.get("REMOTE_ADDR", "0") in ("127.0.0.1", "localhost") \
or request.environ.get("HTTP_HOST", "0") in ("127.0.0.1:9666", "localhost:9666"):
diff --git a/pyload/webui/app/utils.py b/pyload/webui/app/utils.py
index 4a431493b..ac7fa84fb 100644
--- a/pyload/webui/app/utils.py
+++ b/pyload/webui/app/utils.py
@@ -84,7 +84,11 @@ def parse_userdata(session):
def login_required(perm=None):
+
+
def _dec(func):
+
+
def _view(*args, **kwargs):
s = request.environ.get('beaker.session')
if s.get("name", None) and s.get("authenticated", False):
@@ -116,6 +120,7 @@ def toDict(obj):
class CherryPyWSGI(ServerAdapter):
+
def run(self, handler):
from wsgiserver import CherryPyWSGIServer