I have tried this:

def mytest():
    form_one = SQLFORM.factory()
    form_two = SQLFORM.factory()

    if form_one.accepts(request.vars, session, formname='one'):
        response.flash = 'Form one'

    if form_two.accepts(request.vars, session, formname='two'):
        response.flash = 'Form two'

    return dict(form_one=form_one, form_two=form_two)

In the view, I'm printing the two forms with "{{=form_one}}" and
"{{=form_two}}".
Everything works fine.

BUT, if i change one of the form's methods, for example:
    form_one = SQLFORM.factory(_method='GET')
then the second form never accepts vars.

I mean, with the first form using GET and the second using POST, the
first form does accepts vars, but the second doesn't.

¿A bug? ¿Or am I doing something wrong?

Reply via email to