[Grok-dev] Containment with grok.Container
Christian Theune
ct at gocept.com
Thu Oct 19 15:23:03 EDT 2006
Hi,
grok.Container (which derives from
zope.app.container.btree.BTreeContainer) does something different than
zope.app.folder.Folder.
For some reason I had to make the model implement IContained (by
subclassing contained.Contained in this case) to get the __parent__
attribute set correctly. :/
This introduced a delicately balanced equilibrium between grok.Model and
grok.Container that I'm unhappy with because it depends on the order of
the base classes of grok.Model to be able to mix-in models and containers.
We could argue that grok.Container always is a model and should not be
mixed in, or we could try harder to figure out what the BTreeContainer
does different that the dependency on Contained is needed.
Christian
--
gocept gmbh & co. kg - forsterstraße 29 - 06112 halle/saale - germany
www.gocept.com - ct at gocept.com - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20061019/45f0362a/signature.bin
More information about the Grok-dev
mailing list