Talked too soon :\
========
File
"/usr/local/lib/python2.4/site-packages/FormEncode-0.5.2dev-py2.4.egg/formencode/schema.py",
line 172, in _to_python
raise Invalid(
File
"/usr/local/lib/python2.4/site-packages/FormEncode-0.5.2dev-py2.4.egg/formencode/schema.py",
line 303, in format_compound_error
return ('%s\n' % (' '*indent)).join(
File
"/usr/local/lib/python2.4/site-packages/FormEncode-0.5.2dev-py2.4.egg/formencode/schema.py",
line 315, in format_compound_error
assert 0, "I didn't expect something like %s" % repr(v)
AssertionError: I didn't expect something like u'Os campos n\xe3o s\xe3o iguais'
========
The form has some TextFields, being validated by a Schema, and the
fields 'password' and 'confirm_password' are in the chained_validators
(FieldsMatch) for the obvious functions.
* If all the fields are valid, everything is ok and the page gets processed.
* If one of the fields is invalid but password and confirm_password
are equal, the validation error is shown beside the corresponding
field, translated.
* If all the fields are valid, but password and confirm_password are
different, the "Fields don't match" message is correctly printed
besides the textbox, translated.
* If any other field fails validation AND password and
confirm_password are different (thus, failing), I get the above
described Assertion Error.
[]s
core
http://core.eti.br
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---