svn path=/trunk/packages/invirt-web/; revision=2811
@cherrypy.expose
@cherrypy.tools.mako(filename="/unauth.mako")
def index(self):
- if(os.path.exists("/etc/invirt/message")):
+ d = dict(simple=True)
+ if os.path.exists("/etc/invirt/message"):
f = open('/etc/invirt/message')
- message = f.read()
- else:message = None
- d = dict(simple = True, serviceMessage = message)
+ d['serviceMessage']= f.read()
return d
-
class InvirtWeb(View):
def __init__(self):
super(self.__class__,self).__init__()