trying out web view for internet radio station management

workspace
Brendan Howell 4 years ago
parent d77fcf43f8
commit ef1ecdd357

@ -172,6 +172,7 @@ class Bureau(object):
""" set up ZeroMQ connections, printers, fonts and register commands""" """ set up ZeroMQ connections, printers, fonts and register commands"""
self.commands = {} self.commands = {}
self.api = {} self.api = {}
self.webviews = {}
mypath = inspect.getfile(self.__class__) mypath = inspect.getfile(self.__class__)
self.mdir = os.path.dirname(mypath) self.mdir = os.path.dirname(mypath)
@ -369,7 +370,7 @@ class Bureau(object):
else: else:
self.send("IR", "addapi", api_detail) self.send("IR", "addapi", api_detail)
elif hasattr(method, "webview"): elif hasattr(method, "webview"):
self.webview[method.webview] = method self.webviews[method.webview] = method
webview_detail = { "name": method.name, webview_detail = { "name": method.name,
"prefix": self.prefix, "prefix": self.prefix,
"webview": method.webview, "webview": method.webview,

Loading…
Cancel
Save