Have you ever happened to you?
My example:
class GoodUserForm(FancyValidator):
def validate_python(self, value, state):
errors = {}
[...]
try:
String(not_empty=True, min=2).to_python(value['company']) #
raise KeyError
except formencode.Invalid, e:
errors.update({'company': unicode(e)})
[...]
class UserFormUpdate(formencode.Schema):
allow_extra_fields = True
individual = StringBool(if_missing=False, if_empty=False)
[...]
company = String(max=128, if_missing=None, strip=True), # <-- The
error is a comma!!!, but I can create pyc and use it
[...]
chained_validators = [GoodUserForm()]
This file can be compile, but it is not works as expected.
Best Regards,
Tomasz Narloch
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.