[web2py] Re: how to set a default user group

2012-03-11 Thread Alan Etkin
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

Re: [web2py] Re: how to set a default user group

2012-03-11 Thread Vasile Ermicioi
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

[web2py] Re: how to set a default user group

2012-03-10 Thread Alan Etkin
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