Changeset 2814


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

Moved all code for service messages to unauth.make

Location:
trunk/packages/invirt-web/code
Files:
2 edited

Legend:

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

    r2811 r2814  
    5252    @cherrypy.tools.mako(filename="/unauth.mako")
    5353    def index(self):
    54         d = dict(simple=True)
    55         if os.path.exists("/etc/invirt/message"):
    56             f = open('/etc/invirt/message')
    57             d['serviceMessage']= f.read()
    58         return d
     54        return dict(simple=True)
    5955
    6056class InvirtWeb(View):
  • trunk/packages/invirt-web/code/templates/unauth.mako

    r2812 r2814  
    1414system of your choice</strong>.  The service is <strong>free</strong>
    1515to any Athena account holder.</p>
    16 %if serviceMessage:
     16
     17%if os.path.exists("/etc/invirt/message"):
    1718<div class="result">
    18 <p class="error">${serviceMessage}</p>
     19<p class="error">${open('/etc/invirt/message').read()}</p>
    1920</div>
    2021%endif
Note: See TracChangeset for help on using the changeset viewer.