I was just looking at that code in the pdf.  I put your changes in,
but it still does not update t2_person.email.

Any idea why?

thx,

-wj

On Mon, Dec 1, 2008 at 4:35 PM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote:
> On Mon, Dec 1, 2008 at 5:06 PM, Wes James <[EMAIL PROTECTED]> wrote:
>>
>> Massimo,
>>
>> I tried this but did not work:
>>
>> def sync_profile_and_t2(form):
>>    if form.vars.email!=form.record.email:
>>
>>  db(db.t2_person.id==form.vars.student_id).update(email=form.vars.email)
>
> should be more like:
>    def sync_profile_and_t2(form):
>       if form.vars.email!=form.record.email:
>          rows = db(db.t2_person.id==form.vars.student_id).select()
>          rows[0].update_record(email=form.vars.email)

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