You can use an _after_insert callback: 
http://web2py.com/books/default/chapter/29/06#before-and-after-callbacks.

Anthony

On Saturday, June 8, 2013 10:37:37 AM UTC-4, Jim T. wrote:
>
> Hi. I have a table like this:
>
> db.define_table('table1',
>
> Field('userid', ...),
>
> ... other fields ...,
> auth.signature
> )
>
> I'd like a new row to be created in table1 with the 'userid' set to the 
> new user's 'id' when a new user is created, and all other values to be set 
> to the Fields' default values. Is there a way to implement this in the 
> model?
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to