[Zope3-dev] Re: Add function for schema validation in zope.schema

2007-08-20 Thread Christian Zagrodnick
On 2007-08-20 14:59:52 +0200, Fred Drake [EMAIL PROTECTED] said: On 8/20/07, Christian Zagrodnick [EMAIL PROTECTED] wrote: I think we should add a function to validate a given schema on a given class. This should include constraints and invariants: I do presume you mean object, rather than

[Zope3-dev] Re: Add function for schema validation in zope.schema

2007-08-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fred Drake wrote: On 8/20/07, Christian Zagrodnick [EMAIL PROTECTED] wrote: I think we should add a function to validate a given schema on a given class. This should include constraints and invariants: I do presume you mean object, rather than

[Zope3-dev] Re: Add function for schema validation in zope.schema

2007-08-20 Thread Philipp von Weitershausen
Christian Theune wrote: Hi, Am Montag, den 20.08.2007, 08:59 -0400 schrieb Fred Drake: On 8/20/07, Christian Zagrodnick [EMAIL PROTECTED] wrote: I think we should add a function to validate a given schema on a given class. This should include constraints and invariants: I do presume you mean

[Zope3-dev] Re: Add function for schema validation in zope.schema

2007-08-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wichert Akkerman wrote: Previously Christian Theune wrote: Hi, Am Montag, den 20.08.2007, 08:59 -0400 schrieb Fred Drake: On 8/20/07, Christian Zagrodnick [EMAIL PROTECTED] wrote: I think we should add a function to validate a given schema on a

[Zope3-dev] Re: Add function for schema validation in zope.schema

2007-08-20 Thread Christian Theune
Am Montag, den 20.08.2007, 16:05 +0200 schrieb Philipp von Weitershausen: This is exactly what I would suggest: The function should return a list of validation errors. Similar semantics are used in zope.formlib's validate() method. I agree with Wichert's objection about being a bit

Re: [Zope3-dev] Re: Add function for schema validation in zope.schema

2007-08-20 Thread Philipp von Weitershausen
On 20 Aug 2007, at 16:12 , Benji York wrote: Philipp von Weitershausen wrote: This is exactly what I would suggest: The function should return a list of validation errors. Similar semantics are used in zope.formlib's validate() method. I agree with Wichert's objection about being a bit

Re: [Zope3-dev] Re: Add function for schema validation in zope.schema

2007-08-20 Thread Fred Drake
On 8/20/07, Benji York [EMAIL PROTECTED] wrote: I like getValidationErrors. It's use would probably normally look something like this: ... Both look good to me. Ok, agreed, for reasons people have already given. -Fred -- Fred L. Drake, Jr.fdrake at gmail.com Chaos is the score upon