[Zope3-Users] Containers Contains

Marius Gedminas mgedmin at b4net.lt
Fri Jan 26 15:24:18 EST 2007

On Fri, Jan 26, 2007 at 07:48:36PM +0100, David Johnson wrote:
> When setting up container/contained relationships, what is the proper  
> approach? Is it the approach outlined in Stephan's book with  
> IContainer, __setitem__, and preconditions?  Or is it "contains" and  
> "containers"?

contains() and containers() is a newer and prettier way to achieve the
same result.  It didn't exist when Stephan's book was written.

> I have been having some problems and would be curious the definitive  
> approach.  The former is more complicated and so I find make lots of  
> coding errors.  The latter is simple but I find it causes strange  
> IInputWidget errors.

Could you show us some code?

Marius Gedminas
"Nuclear war can ruin your whole compile."
                -- Karl Lehenbauer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20070126/2c7d1a87/attachment.bin

More information about the Zope3-users mailing list