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
Spring
Replacing the flash with:
elif form2.errors:
print form2.errors
... and submitting the form prints this:
... which is odd, because it contains the same data as when I submit
the form after removing the autocomplete widget.
Any ideas?
Kind regards,
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???
Done. Thanks Massimo, and for all your hard work.
On Apr 14, 7:29 am, Massimo Di Pierro
wrote:
> Please open an issue in google code and I will fix this asap.
>
> On Apr 14, 8:56 am, Brian Will wrote:
>
>
>
>
>
>
>
> > No, form.vars and request.vars both work the same there. (Should I be
> > usi
Please open an issue in google code and I will fix this asap.
On Apr 14, 8:56 am, Brian Will 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, which then gets looked up as
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 wa
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 terms
7 matches
Mail list logo