[Zope3-dev] __repr__ of ValidationErrors in zope.schema
Christian Zagrodnick
cz at gocept.com
Fri Aug 24 04:00:19 EDT 2007
Hi
I'm implementing the getValidationErrors thingy right now and once
again stumbled upon the ValidationErrors. Their __repr__ is all but
useful.
For instance "TooSmall":
>>> TooSmall(8, 10)
8 10
Another sort of related issue is that you only get the __doc__ string
when calling the .doc() method. "Value is too small." doesn't help a
lot.
Something like "The value 8 is too small. At least 10 is required."
would be much more informative.
What should we do about this?
--
Christian Zagrodnick
gocept gmbh & co. kg · forsterstrasse 29 · 06112 halle/saale
www.gocept.com · fon. +49 345 12298894 · fax. +49 345 12298891
More information about the Zope3-dev
mailing list