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

2009-10-12 Thread devnull
as translating characters.  It's not unicode, tho. -- Joe On Sat, Oct 10, 2009 at 5:36 PM, Iceberg iceb...@21cn.com wrote: On Oct11, 4:21am, Thadeus Burgess thade...@thadeusb.com wrote: On Oct 10, 7:52 am, devnull ache...@gmail.com wrote: Is there an option or a validator

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

2009-10-11 Thread devnull
): response.flash = yay elif form.errors: response.flash = nay else: response.flash = hey return dict(form=form) On Oct 9, 10:38 pm, devnull ache...@gmail.com wrote: Hm. The page loads with the error response flash. Other than that it works. def cap():     from gluon.tools

[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

[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

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

2009-10-09 Thread devnull
the example http://www.web2py.com/AlterEgo/default/show/99 On Oct 9, 2:26 pm, devnull ache...@gmail.com 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 submit, it flashes 'done

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

2009-10-09 Thread devnull
='done!' else: response.flash='nope.' return dict(form=form) On Oct 9, 6:16 pm, mdipierro mdipie...@cs.depaul.edu wrote: oops. fixed thanks. Please let us know if this works for you. On Oct 9, 4:57 pm, devnull ache...@gmail.com wrote: Awesome -- thanks! (By the way, the page

[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

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

2009-10-05 Thread devnull
) return dict(x=x,y=y,sum=sum) On Oct 5, 11:31 am, mdipierro mdipie...@cs.depaul.edu wrote: Thank you devnull, some answers below: On Oct 5, 10:14 am, devnull ache...@gmail.com wrote: Hello all. Just discovered web2py and I think it's great. I wish we were using it here at work