Changeset 2811


Ignore:
Timestamp:
Dec 30, 2009, 3:24:27 PM (15 years ago)
Author:
pweaver
Message:

Fixed some style errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/main.py

    r2810 r2811  
    5252    @cherrypy.tools.mako(filename="/unauth.mako")
    5353    def index(self):
    54         if(os.path.exists("/etc/invirt/message")):
     54        d = dict(simple=True)
     55        if os.path.exists("/etc/invirt/message"):
    5556            f = open('/etc/invirt/message')
    56             message = f.read()
    57         else:message = None
    58         d = dict(simple = True, serviceMessage = message)
     57            d['serviceMessage']= f.read()
    5958        return d
    60 
    6159
    6260class InvirtWeb(View):
Note: See TracChangeset for help on using the changeset viewer.