[web2py] Re: form.errors problem when adding inputs to updating SQLFORM

2011-04-14 Thread Massimo Di Pierro
Because onfailure def validateTerms(form): if form.vars.terms != 'agree': form.errors.terms = 'You must agree to the terms.' must be def validateTerms(form): if request.vars.terms != 'agree': form.errors.terms = 'You must agree to the

[web2py] Re: form.errors problem when adding inputs to updating SQLFORM

2011-04-14 Thread Brian Will
No, form.vars and request.vars both work the same there. (Should I be using request instead anyway?) The internal error stems from adding 'terms' to form.errors, which then gets looked up as if 'terms' is a field in my table, which it's not. Look at sqlhtml.py line 1042. So am I doing this in a

[web2py] Re: form.errors problem when adding inputs to updating SQLFORM

2011-04-14 Thread Massimo Di Pierro
Please open an issue in google code and I will fix this asap. On Apr 14, 8:56 am, Brian Will brian.thomas.w...@gmail.com wrote: No, form.vars and request.vars both work the same there. (Should I be using request instead anyway?) The internal error stems from adding 'terms' to form.errors,

[web2py] Re: form.errors problem when adding inputs to updating SQLFORM

2011-04-14 Thread Brian Will
Done. Thanks Massimo, and for all your hard work. On Apr 14, 7:29 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Please open an issue in google code and I will fix this asap. On Apr 14, 8:56 am, Brian Will brian.thomas.w...@gmail.com wrote: No, form.vars and request.vars both