def notify(**kwargs): """ Send a user notification. :param message: the message :param title: the title """ notice = Notice(**kwargs) get_core_context().send(signal=USER_NOTIFIED, notice=notice)
def open_ui(self): url = 'http://127.0.0.1:5080' webfront = get_core_context().lookup('webfront') if webfront is not None: url = webfront.local_base_url webbrowser.open(url)
def open_ui(self): url = 'http://127.0.0.1:5080/' webfront = get_core_context().lookup('webfront') if webfront is not None: url = webfront.local_base_url url += "#login/" + webfront.access_token webbrowser.open(url)