[web2py:32243] newbie looking for style advice

2009-10-05 Thread devnull
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

[web2py:32250] Re: newbie looking for style advice

2009-10-05 Thread devnull
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

[web2py:32573] reCaptcha example not working?

2009-10-09 Thread devnull
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

[web2py:32582] Re: reCaptcha example not working?

2009-10-09 Thread devnull
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

[web2py:32598] Re: reCaptcha example not working?

2009-10-09 Thread devnull
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

[web2py:32613] strip whitespace before validating fields

2009-10-10 Thread devnull
(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

[web2py:32702] Re: reCaptcha example not working?

2009-10-11 Thread devnull
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

[web2py:32752] Re: strip whitespace before validating fields

2009-10-12 Thread devnull
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,