Hi
I have a web2py application that I have recently upgraded to version 2.12.3
and have been working on converting it to use the jqmobile plugin. I have
run into an issue with form submission due to the url not changing when you
submit a form so rather than load the page specified by the
red
On 6 Jul 2014, at 7:04 PM, Bazida wrote:
> Hi, I was doing some tutorial from the web2py book, i ran into this following
> code
>
> def first():
> form = SQLFORM.factory(Field('visitor_name', requires=IS_NOT_EMPTY()))
> if form.process().accepted:
> name = form.vars.visitor_name
Hi, I was doing some tutorial from the web2py book, i ran into this
following code
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))) # i
I tried to make a redirect to my frontpage and didn“t remember how to
do that so I tried with redirect(URL()). That leads to a endless loop.
In my case Firefox stopped after trying to redirect. Maybe web2py
should detect this stupid programming error or is there a case when
URL() is needed?
Now I
4 matches
Mail list logo