コード例 #1
0
def default():
    if current_user.is_authenticated:
        default_page_name = 'dashboard'
        args = {
            "apps": running_context.get_apps(),
            "authKey": current_user.get_auth_token(),
            "currentUser": current_user.email,
            "default_page": default_page_name
        }
        return render_template("container.html", **args)
    else:
        return redirect(url_for('/login'))
コード例 #2
0
def default():
    if current_user.is_authenticated:
        default_page_name = 'dashboard'
        args = {
            "apps": running_context.get_apps(),
            "authKey": current_user.get_auth_token(),
            "currentUser": current_user.email,
            "default_page": default_page_name
        }
        return render_template("container.html", **args)
    else:
        return {"status": "Could Not Log In."}
コード例 #3
0
ファイル: interface.py プロジェクト: SamPool1/WALKOFF
def devices():
    return {
        "apps": running_context.get_apps(),
        "form": forms.AddNewDeviceForm(),
        "editDeviceform": forms.EditDeviceForm()
    }