svn path=/trunk/packages/invirt-web/; revision=2814
@cherrypy.expose
@cherrypy.tools.mako(filename="/unauth.mako")
def index(self):
- d = dict(simple=True)
- if os.path.exists("/etc/invirt/message"):
- f = open('/etc/invirt/message')
- d['serviceMessage']= f.read()
- return d
+ return dict(simple=True)
class InvirtWeb(View):
def __init__(self):
Debian or Ubuntu install</strong> or install the <strong>operating
system of your choice</strong>. The service is <strong>free</strong>
to any Athena account holder.</p>
-%if serviceMessage:
+
+%if os.path.exists("/etc/invirt/message"):
<div class="result">
-<p class="error">${serviceMessage}</p>
+<p class="error">${open('/etc/invirt/message').read()}</p>
</div>
%endif