I think that 'Schema' class cannot merge errors from validators of
each field and errors from validators of 'chained_validators' correctly.
In '_to_python' method of 'Schema' class, validators of each field are
evaluated first. And errors is assigned to local variable 'errors'
dictionary as instances of 'Invalid' class.
Then, validators of 'chained_validators' are evaluated and those errors
are 'unpack_errors'ed into dictionary and merged with prebious 'errors'
dictionary by 'merge_dicts' method.
'merge_dicts' method will call 'merge_values' method.
'merge_values' method doesn't know how to merge an instance of
'Invalid' class, does know only how to merge (str, unicode), (list, tuple)
and dictionaries.
So I guess 'Schema' class never merge errors from validators of each field
and errors from validators of 'chained_validators' correctly.
--
Mamoru
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FormEncode-discuss mailing list
FormEncode-discuss@???
https://lists.sourceforge.net/lists/listinfo/formencode-discuss