use DAL callbacks if you need "mass inserts" to work in the same way. 

http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#before-and-after-callbacks

On Wednesday, October 16, 2013 8:07:06 PM UTC+2, ranjith wrote:
>
> Hi,
>
> I want to add a membership to a user when a new user is added to the 
> auth_user table. It is possible when the user registers via the front end 
> through the callback auth.settings.register_onaccept.
>
> But in my case, I am adding the bulk entries to the auth_user table using 
> the script. So, now, while entries getting added to the auth_user, how to 
> add the permission for the different set of users?
>
> Please help!!!!
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to