On Sun, Jan 07, 2007 at 02:10:20PM +0100, Christophe Combelles wrote:
> I understand there is an inconsistency between these two interfaces, and this
> is not a correct solution.
> But using just containers() on content objects doesn't prevent their
> >from displaying everything in the Add Menu.
> It just prevents from adding these objects in other containers.
You could use a another interface (i.e. IForOrBar) and something like
This way, Foo and Bar have to depend on another package (The one containing
IFooOrBar). Neither does this package need to know anything about IFoo or IBar,
nor does IFoo have to know anything about IBar or vice versa.
Zope3-users mailing list