Why don't you just store the ID? user_id = db.auth_user.insert(**db.auth_user._filter_fields(form.vars))
Now you've got the user ID. Anthony On Monday, April 27, 2015 at 7:12:46 PM UTC-4, Alex Glaros wrote: > > Anthony, plain "id" returns "None". > > There are other tables' info in form vars so how would it know which table > to get "id" from? > > The following gets all the "id"s from all the tables except auth_user: > str(db.auth_user._filter_fields(form.vars)) > > But those IDs are captured with statements above like: form.vars.partyID > = db.Party.insert(**db.Party._filter_fields(form.vars)) > > If that is a good way to capture the data, then I am unsure how to write > that for auth_user table without impacting the insertion process > > thanks, > > Alex > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

