Massimo had some simple way to include the request values at the bottom of
each page, similar to what's shown on P.97 of his book;    I just scanned
the PDF, the book, and a quick check of sources....
I don't want to work so hard, so I'll let Massimo reply ....  (I'm probably
just hungry / it's Monday / pick-your-favorite reason ;-)

On Mon, Dec 1, 2008 at 5:41 PM, Wes James <[EMAIL PROTECTED]> wrote:

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