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
|
|
@ -37,7 +37,9 @@ import time
|
|||
from uplink.configuration import Configuration
|
||||
from uplink.uplink import Uplink
|
||||
|
||||
__version__ = '0.8.1'
|
||||
# MAJOR_RELEASE.MAJOR CHANGES.MINOR_CHANGES.BUG_FIXES
|
||||
# Related to: https://wiki.unixpeople.org/linux_kernel_version_numbering
|
||||
__version__ = '0.8.2'
|
||||
__author__ = 'Johannes Findeisen <you@hanez.org>'
|
||||
|
||||
logger = logging.getLogger('uplink')
|
||||
|
|
|
|||
|
|
@ -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