Yap Sok Ann
2011-03-27 14:06:02 UTC
Hi,
Should SimpleFormValidator inherit from FormValidator instead of
FancyValidator? Otherwise, when used as a chained validator, a call to
schema.from_python({}, None) will raise an exception, as
FancyValidator.from_python({}, None) returns None and fails the dict
assertion. OTOH, FormValidator.from_python({}, None) returns {} as is.
Regards,
Yap
Should SimpleFormValidator inherit from FormValidator instead of
FancyValidator? Otherwise, when used as a chained validator, a call to
schema.from_python({}, None) will raise an exception, as
FancyValidator.from_python({}, None) returns None and fails the dict
assertion. OTOH, FormValidator.from_python({}, None) returns {} as is.
Regards,
Yap