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
b05906e
..
9f57f84
100755
(executable)
--- a/
code/main.py
+++ b/
code/main.py
@@
-51,14
+51,12
@@
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):
- if(os.path.exists("/etc/invirt/message")):
+ d = dict(simple=True)
+ if os.path.exists("/etc/invirt/message"):
f = open('/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
return d
-
class InvirtWeb(View):
def __init__(self):
super(self.__class__,self).__init__()
class InvirtWeb(View):
def __init__(self):
super(self.__class__,self).__init__()