Aha. So the documentation is obsolette in this case. Recent web2py is smart
enough to deal with multiple forms & double submits detection on the same
page. Thank you for clarification (and for the book of course!).

On Mon, Aug 31, 2009 at 4:58 PM, mdipierro <[email protected]> wrote:

>
> That line should have been corrected.
>
> You cannot have two forms in the same page with the same _formname.
> That is all.
>
> On Aug 31, 2:34 am, Alexey Nezhdanov <[email protected]> wrote:
> > Hello.
> > Massimo, I have a question regarding double form submission.
> > There is a phrase in the book (page 188):
> > =========
> > Moreover, when multiple forms are present on the same page, the mechanism
> > for preventing double submission breaks...
> > =========
> > That was a good reason for me to look into the code. I didn't find
> anything
> > that should break there.
> > So I typed in your double form example and played with it (catched the
> > stream with tcpflow and used it to imitate double submission) - it
> correctly
> > recognises second submission too for both forms (if I pass in session
> object
> > into accepts()).
> > Can you please explain what kind of breakage happens?
> > --
> > Regards
> > Alexey
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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