[web2py] Re: About validators

2015-01-27 Thread Anthony
Make sure you check form.vars (after calling .process) rather than request.vars. Anthony On Tuesday, January 27, 2015 at 10:15:34 AM UTC-5, mweissen wrote: > > In the book I find:IS_LOWER > > This validator never returns an error. It just converts the value to lower > case. > > requires = IS_L

[web2py] Re: About validators

2015-01-27 Thread tim . nyborg
'but I get "abcDEF"' How did you get that? form=FORM(INPUT(_type="text", _name="n", requires=IS_LOWER())) if form.process().accepted: response.flash = form.vars.n The above spits out 'uppercase' when I entered 'UPPERCASE' On Tuesday, 27 January 2015 15:15:34 UTC, mweissen