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