def index(ret_path='/'): g_path = router.to_path(google.index, ret_path=ret_path) dct = {'login_google_path': users.create_login_url(g_path), 'login_passwordless_path': router.to_path(send_email, ret_path=ret_path), 'login_facebook_path': router.to_path(facebook.index, ret_path=ret_path), 'faceapp': facade.get_facebook_app_data().execute().result} return TemplateResponse(dct, 'login/home.html')
def index(_write_tmpl, ret_path='/'): g_path = router.to_path(google.index, ret_path=ret_path) dct = {'login_google_path': users.create_login_url(g_path), 'login_passwordless_path': router.to_path(enviar_email,ret_path=ret_path), 'login_facebook_path': router.to_path(facebook.index,ret_path=ret_path), 'faceapp': facade.get_facebook_app_data().execute().result} _write_tmpl('login/home.html', dct)
def index(ret_path="/"): g_path = router.to_path(google.index, ret_path=ret_path) dct = { "login_google_path": users.create_login_url(g_path), "login_passwordless_path": router.to_path(send_email, ret_path=ret_path), "login_facebook_path": router.to_path(facebook.index, ret_path=ret_path), "faceapp": facade.get_facebook_app_data().execute().result, } return TemplateResponse(dct)
def form(): app = facade.get_facebook_app_data().execute().result dct = {'save_app_path': router.to_path(save), 'app': app} return TemplateResponse(dct)
def form(_write_tmpl): app = facade.get_facebook_app_data().execute().result dct = {'salvar_app_path': router.to_path(save), 'app': app} _write_tmpl('login/facebook_form.html', dct)