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
Added some code to display a service message from the xvm team to the unauth page...
[invirt/packages/invirt-web.git]
/
code
/
main.py
diff --git
a/code/main.py
b/code/main.py
index
dd2b591
..
b05906e
100755
(executable)
--- a/
code/main.py
+++ b/
code/main.py
@@
-51,7
+51,13
@@
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}
+ if(os.path.exists("/etc/invirt/message")):
+ f = open('/etc/invirt/message')
+ message = f.read()
+ else:message = None
+ d = dict(simple = True, serviceMessage = message)
+ return d
+
class InvirtWeb(View):
def __init__(self):
class InvirtWeb(View):
def __init__(self):