[web2py] onaccept in CRUD

2012-12-06 Thread Kenneth
Hello, I have a form created by CRUD with some extra fields. assets_label field is a dropdown consisting of all old labels. Beside that I add an normal text field where user can enter a new label. I have then crud.settings.create_onaccept = insert_assets where I update the label name if there

[web2py] onaccept vs next (auth.register)

2012-08-12 Thread lyn2py
Hi, I want to customize the user registration, and encountered "onaccept" vs "next". 1. May I know what is the difference between the two? 2. I want the user to be redirected to another form upon *successful*registration (and logged in), will "next" overwrite "onaccept"? Thanks! --

[web2py] onaccept in auth.login using 3rd party logins?

2011-02-17 Thread firedragon852
I am using oauth20_account and oauth10a_account as well as the regular form login authentication. I want to be able to execute a method after the user logs in. For the regular form login authentication, return dict(form=auth.login(onaccept=execute_me_after_login)) executes execute_me_after_login(

[web2py] onaccept

2011-02-07 Thread David J.
Is there an example of how to use "onaccept" handler? I tried auth.settings.verify_email_onaccept = lambda f:_create_account(f) def _create_account(f): session.account = f return I tried on my index page to display {{= session.account }} But I dont think it worked. Thanks.

[web2py] onaccept after user registers;

2011-02-02 Thread David J.
Is there an example of using "onaccept" after a user registers?