diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-21 13:01:24 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-21 13:01:24 +0200 |
commit | 3b5c6ac1b27189ff017910816324420cb3b2cec6 (patch) | |
tree | 9e8b57a7c664a40681c701e6545d031b74c260ec /module/web/pyload_app.py | |
parent | improved online check (diff) | |
download | pyload-3b5c6ac1b27189ff017910816324420cb3b2cec6.tar.xz |
show updates on webif
Diffstat (limited to 'module/web/pyload_app.py')
-rw-r--r-- | module/web/pyload_app.py | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py index 7492114ca..35203ad7b 100644 --- a/module/web/pyload_app.py +++ b/module/web/pyload_app.py @@ -45,16 +45,27 @@ def pre_processor(): user = parse_userdata(s) perms = parse_permissions(s) status = {} - if user["is_authenticated"]: - status = PYLOAD.statusServer() captcha = False + update = False + plugins = False if user["is_authenticated"]: + status = PYLOAD.statusServer() + info = PYLOAD.getInfoByPlugin("UpdateManager") captcha = PYLOAD.isCaptchaWaiting() + + # check if update check is available + if info: + if info["pyload"] == "True": update = True + if info["plugins"] == "True": plugins = True + + return {"user": user, 'status': status, 'captcha': captcha, 'perms': perms, - 'url': request.url} + 'url': request.url, + 'update': update, + 'plugins': plugins} def base(messages): |