projects
/
invirt/packages/invirt-web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed some style errors
[invirt/packages/invirt-web.git]
/
code
/
main.py
diff --git
a/code/main.py
b/code/main.py
index
dd2b591
..
9f57f84
100755
(executable)
--- a/
code/main.py
+++ b/
code/main.py
@@
-51,7
+51,11
@@
class InvirtUnauthWeb(View):
@cherrypy.expose
@cherrypy.tools.mako(filename="/unauth.mako")
def index(self):
@cherrypy.expose
@cherrypy.tools.mako(filename="/unauth.mako")
def index(self):
- return {'simple': True}
+ d = dict(simple=True)
+ if os.path.exists("/etc/invirt/message"):
+ f = open('/etc/invirt/message')
+ d['serviceMessage']= f.read()
+ return d
class InvirtWeb(View):
def __init__(self):
class InvirtWeb(View):
def __init__(self):