Markus, That is how I understood it as well; however, something I am doing is making the formname change not take. I am under the impression that if I am able to set the formname, I will be able to keep the session since the formname will be unique. I can't get the formname change to stick though so the point is kind of moot right now.
On Jan 23, 2:32 pm, Markus Gritsch <[email protected]> wrote: > On Fri, Jan 23, 2009 at 11:22 PM, Robin B <[email protected]> wrote: > > > class FORM(DIV): > > ... > > def accepts > > (self,vars,session=None,formname='default',keepvalues=False): > > > Try the formname='name' of accepts. > > The Book says on page 163 > "Moreover,when multiple forms are present on the same page the > mechanism for preventing double submission breaks and you must omit > the session argument when calling the accepts method." > > Is this still true? From the code in html.py it seems, that > preventing double submission also works for multiple forms on a page. > One just has to set the formname of each form, and pass the session to > accepts(). Correct? > > Markus --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

