Yes, my bad. I copy-pasted the example from the book and modified it
partially.
On 11 mar, 19:43, Vasile Ermicioi wrote:
> auth.settings.register_onaccept = post_register
>
> it works, thank you :)
>
>
>
>
>
>
>
> On Sat, Mar 10, 2012 at 2:44 PM, Alan Etkin wrote:
> > This is one way of solving
auth.settings.register_onaccept = post_register
it works, thank you :)
On Sat, Mar 10, 2012 at 2:44 PM, Alan Etkin wrote:
> This is one way of solving it (by binding a function to an
> auth.settings attribute):
>
> # model code
>
> def post_register(form):
># the new user id is stored in a
This is one way of solving it (by binding a function to an
auth.settings attribute):
# model code
def post_register(form):
# the new user id is stored in auth.user_id
pass
auth.settings.register_onaccept = give_create_permission
On registration, you can perform auth management by access
3 matches
Mail list logo