Nope, you need something like this but it would better to create when
you create the account and make this just an update page.
if db(db.student.id==t2.person_id).select():
form=t2.update(db.student,db.student.id==t2.person_id)):
else:
form=t2.create(db.student)
return dict(form=form)
On Nov 7, 8:43 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
> that is:
>
> if (db.student.id exists in t2.person_id):
> form=t2.update(db.student,db.student.id==t2.person_id)):
> else:
> form=t2.create(db.student)
> return dict(form=form)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---