I think what I'm going to do here is remove email address from the
student table and just print the email address (not an input), since
this is the 'username' for this app anyway.  If they want to change
the 'username/email' they will need to create a new account.

On Mon, Dec 1, 2008 at 12:09 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> you can do
>
> def myaccept(form):
>     if form.vars.email!=form.record.email:
>        ... do soemthing, perhaps: db
> (db.t2_person.id==form.vars.person_id).update(....)
>
> t2.update(...,onaccept=myaccept)
>
> Massimo
>
> On Dec 1, 12:56 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
>> I set the a student email to the t2.person email address when they
>> submit a form.  Is there an easy way to update the t2.person email
>> address if the student changes the email address in their data form?
>>
>> Actually, maybe I could put the t2.person field in that spot on the
>> student form instead of having an email address in t2.person and
>> student tables.
>>
>> Any suggestions on this?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to