[Zope3-dev] Containment constraints
Chris Withers
chrisw@nipltd.com
Thu, 12 Jun 2003 14:27:51 +0100
Stephan Richter wrote:
> On Thursday 12 June 2003 06:19, Jim Fulton wrote:
>
> Couldn't we just have a list of allowable interfaces? If an object implements
> one of the listed interfaces, it can be added.
>
> One the other hand, an isAllowed() method might be best, so you could
> implement things like all interfaces except IFoo. I would make that method a
> method of IContainer.
How does this handle the case when the object wants to veto it's creation in a
given container?
cheers,
Chris