Re: [Zope3-Users] question about a constraint conflict

2007-01-08 Thread FB
Hi, On Sun, Jan 07, 2007 at 02:10:20PM +0100, Christophe Combelles wrote: [snip] 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 containers from displaying

Re: [Zope3-Users] question about a constraint conflict

2007-01-08 Thread Stephan Richter
On Sunday 07 January 2007 08:10, 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 containers from displaying everything in the Add Menu. It

Re: [Zope3-Users] question about a constraint conflict

2007-01-07 Thread Christophe Combelles
FB a écrit : Hi, On Sat, Jan 06, 2007 at 01:35:35AM +0100, Christophe Combelles wrote: Hello I define the following interfaces: class IFoo(Interface): pass class IBar(Interface): pass class IFooContainer(IContainer): contains(IFoo) class IBarContainer(IContainer): contains(IBar)

Re: [Zope3-Users] question about a constraint conflict

2007-01-06 Thread FB
Hi, On Sat, Jan 06, 2007 at 01:35:35AM +0100, Christophe Combelles wrote: Hello I define the following interfaces: class IFoo(Interface): pass class IBar(Interface): pass class IFooContainer(IContainer): contains(IFoo) class IBarContainer(IContainer): contains(IBar)

[Zope3-Users] question about a constraint conflict

2007-01-05 Thread Christophe Combelles
Hello I define the following interfaces: class IFoo(Interface): pass class IBar(Interface): pass class IFooContainer(IContainer): contains(IFoo) class IBarContainer(IContainer): contains(IBar) Then I would like to configure a class Test to to be both a FooContainer and a