From bfacf46f9b25e6e9df6eb27720f9f545283d63c3 Mon Sep 17 00:00:00 2001 From: KRKeegan <-NOSPAM-kevin@krkeegan.com> Date: Wed, 12 Mar 2008 17:06:44 -0700 Subject: [PATCH] Add ToGo to info page, inform user if admin not installed --- httpserver.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/httpserver.py b/httpserver.py index 52a1db9..eac6807 100644 --- a/httpserver.py +++ b/httpserver.py @@ -121,7 +121,14 @@ class TivoHTTPHandler(BaseHTTPServer.BaseHTTPRequestHandler): for section, settings in config.getShares(): if 'type' in settings and settings['type'] == 'admin': t.admin += 'pyTivo Web Configuration
' + + '">pyTivo Web Configuration
'\ + + 'pyTivo ToGo
' + if t.admin == '': + t.admin = '
No Admin plugin installed in pyTivo.conf
If you wish to use'\ + + ' the admin plugin add the following lines to pyTivo.conf

'\ + + '[Admin]
type=admin' + self.wfile.write(t) self.end_headers() -- 2.11.4.GIT