Changeset 2814
- Timestamp:
- Dec 30, 2009, 3:42:23 PM (15 years ago)
- Location:
- trunk/packages/invirt-web/code
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-web/code/main.py
r2811 r2814 52 52 @cherrypy.tools.mako(filename="/unauth.mako") 53 53 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) 59 55 60 56 class InvirtWeb(View): -
trunk/packages/invirt-web/code/templates/unauth.mako
r2812 r2814 14 14 system of your choice</strong>. The service is <strong>free</strong> 15 15 to any Athena account holder.</p> 16 %if serviceMessage: 16 17 %if os.path.exists("/etc/invirt/message"): 17 18 <div class="result"> 18 <p class="error">${ serviceMessage}</p>19 <p class="error">${open('/etc/invirt/message').read()}</p> 19 20 </div> 20 21 %endif
Note: See TracChangeset
for help on using the changeset viewer.