[Zope3-Users] ContainerTypesConstraint & ItemTypePrecondition vs contains & containers

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Sep 5 18:37:13 EDT 2006


On Thursday 29 June 2006 00:18, Baiju M wrote:
>     Why z.a.c.c.ContainerTypesConstraint and
> z.a.c.c.ItemTypePrecondition is not deprecated yet? There is
> z.a.c.c.contains and z.a.c.c.containers functions.

Because contains() and containers() use those two classes; they are just 
syntactic sugar. See the code in the referenced modules.

> Which is the preferred/recommended way to set constraints?

contains/containers is recommended.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list