[web2py] Re: form.errors problem.

2011-07-21 Thread annet
I mailed Pengoworks, this is their reply: I'm not well versed in Python, but I think you're problem is that the results from the AJAX call are not in the expected format. By default, they're expected to be the format: Sparta|896 Spencer|897 Spencerville|898 Spring Valley|899 Springboro|900

[web2py] Re: form.errors problem.

2011-07-18 Thread annet
By the way, regions are defined like this: Field('regio',length=2,default='',notnull=True,unique=True) and the field regio contains regions between 00 and 99. Maybe this is what's causing the problem???

[web2py] Re: form.errors problem.

2011-07-18 Thread annet
Replacing the flash with: elif form2.errors: print form2.errors ... and submitting the form prints this: Storage {'region': 'no data'} ... which is odd, because it contains the same data as when I submit the form after removing the autocomplete widget. Any ideas? Kind regards,

[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