yes - why not!  :-)
On Mon, Dec 1, 2008 at 6:38 PM, mdipierro <[EMAIL PROTECTED]> wrote:

>
> why no session too?
>
> <hr>
> <h2>Diagnostics: Request</h2>
> {{=BEAUTIFY(request)}}
> <h2>Diagnostics: Session</h2>
> {{=BEAUTIFY(session)}}
> <h2>Diagnostics: Response</h2>
> {{=BEAUTIFY(response)}}
>
> On Dec 1, 6:25 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote:
> > Ah!  Here it is:
> > debug.html:
> >
> > <hr>
> > <ce><h2>Diagnostics:</h2></ce>
> > {{=BEAUTIFY(request)}}{{=BEAUTIFY(response)}}
> >
> > Then, wherever you want it:
> >
> > {{include 'debug.html'}}
> >
> > Maybe debug.html should just always be in welcome/views  --- just not
> > included anywhere???
> >
> > On Mon, Dec 1, 2008 at 6:08 PM, Yarko Tymciurak <[EMAIL PROTECTED]>
> wrote:
> > > 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