From: Paul Weaver Date: Wed, 30 Dec 2009 20:24:27 +0000 (-0500) Subject: Fixed some style errors X-Git-Tag: 0.1.5~9 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/c0e64855a967519169d9c5d8747edbdeb85e49ec Fixed some style errors svn path=/trunk/packages/invirt-web/; revision=2811 --- diff --git a/code/main.py b/code/main.py index b05906e..9f57f84 100755 --- a/code/main.py +++ b/code/main.py @@ -51,14 +51,12 @@ class InvirtUnauthWeb(View): @cherrypy.expose @cherrypy.tools.mako(filename="/unauth.mako") def index(self): - if(os.path.exists("/etc/invirt/message")): + d = dict(simple=True) + if os.path.exists("/etc/invirt/message"): f = open('/etc/invirt/message') - message = f.read() - else:message = None - d = dict(simple = True, serviceMessage = message) + d['serviceMessage']= f.read() return d - class InvirtWeb(View): def __init__(self): super(self.__class__,self).__init__()