Ok will do! On Feb 19, 2013 6:24 PM, "Richard Vézina" <[email protected]> wrote:
> Hello Teddy, > > Report this with "book typo" in the object, these kind of issue with the > book are usally report like until now so the person reponsible to edit the > book will flag them more easily. > > Richard > > > On Tue, Feb 19, 2013 at 8:57 AM, Teddy Nyambe <[email protected]>wrote: > >> Hi Massimo, >> >> Re-reading the online book...looking at this example: >> >> def first(): >> form = SQLFORM.factory(Field('visitor_name', requires=IS_NOT_EMPTY())) >> if form.process().accepted: >> name = form.vars.visitor_name >> redirect(URL('second',vars=dict(name=name))) >> return dict(form=form) >> >> def second(): >> name = request.vars.visitor_name or redirect(URL('first')) >> return dict(name=name) >> >> >> I have noticed in the action "second", the request.vars.visitor_name >> should be request.vars.name considering that the key for the dictionary >> passed is name in the first action. Please note the error. >> -- >> >> ....................................................................................... >> Teddy Lubasi Nyambe >> Opensource Zambia >> Lusaka, ZAMBIA >> >> Cell: +260 97 7760473 >> website: http://www.opensource.org.zm >> >> ~/ >> Human Knowledge belongs to the world! - AntiTrust >> >> Man is a tool-using animal. Without tools he is nothing, with tools he is >> all - Thomas Carlyle 1795-1881 >> >> /~ >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

