Changeset 2811
- Timestamp:
- Dec 30, 2009, 3:24:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-web/code/main.py
r2810 r2811 52 52 @cherrypy.tools.mako(filename="/unauth.mako") 53 53 def index(self): 54 if(os.path.exists("/etc/invirt/message")): 54 d = dict(simple=True) 55 if os.path.exists("/etc/invirt/message"): 55 56 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() 59 58 return d 60 61 59 62 60 class InvirtWeb(View):
Note: See TracChangeset
for help on using the changeset viewer.