Re: [web2py] Re: Calling a function while adding an entry to auth_user table

2013-10-18 Thread ranjith2041
Thanks. But those callbacks are for insertion and deletion of records in a table. I want a *callback for the creation of a table.* On Fri, Oct 18, 2013 at 6:36 PM, 黄祥 wrote: > yes, can, please do with before insert or after insert and please read the > book on dal chapter in before and after ca

Re: [web2py] Re: Calling a function while adding an entry to auth_user table

2013-10-16 Thread ranjith2041
Thanks for the reply. On Thu, Oct 17, 2013 at 5:15 AM, 黄祥 wrote: > other way i think you can add auth.add_permission on your script, > something like : > > # add group > auth.add_group('Manager', 'Manager') > auth.add_group('Admin', 'Admin') > # add user > db.auth_user.bulk_insert([{'first_name