Re: Validation and Events
Philipp von Weitershausen <philipp-EUFZ76H3/[email protected]> Mon, 25 Sep 2006 19:00:28 +0200
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
George Lee wrote: > Is it possible yet to hook in a validator to an Archetypes object using > Five/Zope3 events? I don't understand what events have to do with validators. > Related to Martin Aspeli's work on schema-by-interface -- it's clear how that > could be used to add in a validator just for one new field, but not how we could > validate that the data from two fields satisfy some condition (e.g., min < max). You want zope.interface's invariants. See http://svn.zope.org/Zope3/trunk/src/zope/interface/README.txt?rev=70082&view=auto ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV