Not sure I'm using the Object field right, but this seems odd:

        >>> from zope.schema import Field, Object
        >>> from zope.schema.interfaces import IField
        >>> field = Object(IField)
        >>> field.validate(Field())
        Traceback (most recent call last):
          File "<stdin>", line 1, in ?
"/home/daniel/lib/Zope-3.2.0/lib/python/zope/schema/", line 
138, in validate
        line 418, in _validate
            raise WrongContainedType(errors)
        zope.schema.interfaces.WrongContainedType: [, ]
The error message is not really helpful.  Turns out that the given error
is a RequiredMissing error and it's missing the value of 'default' on
the field.

Am I doing something wrong or is the Object field not behaving as it

Daniel Nouri <[EMAIL PROTECTED]>

Zope3-users mailing list

Reply via email to