예제 #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)
예제 #2
0
파일: shell.py 프로젝트: yenchih/eavatar-me
    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)
예제 #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)
예제 #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)