Added automatic page refresh to the HTTP configuration status page.
This commit is contained in:
parent
f2e79f5267
commit
21a7780c39
2 changed files with 6 additions and 3 deletions
|
|
@ -40,9 +40,10 @@ class HTTPServer:
|
|||
|
||||
@cherrypy.expose
|
||||
def config(self):
|
||||
return '<pre style="border:2px solid black;background:#1d2021;color:#f0751a;">' + \
|
||||
return '<html><head><meta http-equiv="refresh" content="60"></head><body><pre ' \
|
||||
'style="border:2px solid black;background:#1d2021;color:#f0751a;">' + \
|
||||
json.dumps(vars(self.__configuration), sort_keys=True, indent=4) + \
|
||||
'</pre>'
|
||||
'</pre></body></html>'
|
||||
|
||||
@cherrypy.expose
|
||||
def playground(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue