[Zope3-Users] WrongContainedType

Roger Ineichen dev at projekt01.ch
Fri Oct 10 05:07:12 EDT 2008


> Betreff: Re: [Zope3-Users] WrongContainedType


> By reading the source code.
> Object field validation actually attempts to validate the 
> schema (IObjectId in this case) of the object you're trying 
> to store (the ObjectId object, in this case).  If any of the 
> fields cannot be validated during this nested validation, you 
> get a WrongContainedType with the list of errors (one for each field).

I whould be really happy if we could set a flag in the Object field
which whould force to avoid the storing object validation based on the
given schema.

What do you think about a validateSchema=True/False option or something
like that?

Roger Ineichen

More information about the Zope3-users mailing list