Hello all. Just discovered web2py and I think it's great. I wish we
were using it here at work, and so do some of my co-workers.
I have created a little form as an exercise for myself and I came up
with some questions.
It's likely that some of the things I'm wondering about are handled by
the fr
return dict(form=form)
def add_2():
x=session.x
y=session.y
sum=float(x)+float(y)
return dict(x=x,y=y,sum=sum)
On Oct 5, 11:31 am, mdipierro wrote:
> Thank you devnull,
>
> some answers below:
>
> On Oct 5, 10:14 am, devnull wrote:
>
>
>
> > Hello
The controller below initially displays the flash 'some other error in
your form' right when the page loads.
If I leave the captcha field blank and hit submit, it flashes 'done!'
The same thing happens if I type something incorrect in the captcha
field and then hit submit.
What should I do diffe
t;
> http://www.web2py.com/AlterEgo/default/show/99
>
> On Oct 9, 2:26 pm, devnull wrote:
>
> > The controller below initially displays the flash 'some other error in
> > your form' right when the page loads.
>
> > If I leave the captcha field blank and hit s
onse.flash='done!'
else:
response.flash='nope.'
return dict(form=form)
On Oct 9, 6:16 pm, mdipierro wrote:
> oops. fixed thanks. Please let us know if this works for you.
>
> On Oct 9, 4:57 pm, devnull wrote:
>
> > Awesome -- thanks! (By the w
(re-posting since I think my previous message went to just one person)
Is there an option or a validator that will strip whitespace before
applying remaining validators for a given field on a form?
Somewhat related: I tried the CLEANUP validator but the resulting
variable still had characters li
t.vars, session):
response.flash = "yay"
elif form.errors:
response.flash = "nay"
else:
response.flash = "hey"
return dict(form=form)
On Oct 9, 10:38 pm, devnull wrote:
> Hm. The page loads with the error response flash. Other than that i
e".
> It's wicked fast at removing as well as translating characters. It's not
> unicode, tho.
>
> -- Joe
>
> On Sat, Oct 10, 2009 at 5:36 PM, Iceberg wrote:
>
> > On Oct11, 4:21am, Thadeus Burgess wrote:
>
> > > > > On Oct 10, 7:52 am,
8 matches
Mail list logo