Example #1
0
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)
Example #2
0
    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)
Example #3
0
    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)
Example #4
0
    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)