On Friday 08 July 2005 13:50, Florent Guillaume wrote:
> I'm having a hard time grasping the reasons why we have both
> ILocation and IContained.
> class IContained(ILocation):
> """Objects contained in containers."""
> But ILocation provides a __parent__ already, which seems to imply
> that it's contained in it. No?
> What use case makes us differentiate between the two?
No, Zope 3's default model for object publishing is containment, but you could
imagine more general graphs as well (of course the traversal mechanism would
need to be different). I could imagine systems where __parent__ and __name__
are tuples of strings.
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-dev mailing list