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

Reply via email to