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

Added some code to display a service message from the xvm team to the unauth page of the website. The message lives in /etc/invirt/message, which would be symlinked to afs

File:
1 edited

Legend:

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

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