Re: [Zope3-Users] Containers Contains

2007-03-08 Thread Stephan Richter
On Sunday 28 January 2007 06:32, David Johnson wrote: > This I know, so that is exactly my question.  What is the preferred   > approach in Zope?  The contains and containers, or the more explicit   > methods? contains() and containers() Regards, Stephan -- Stephan Richter CBU Physics & Chemistr

Re: [Zope3-Users] Containers Contains

2007-01-28 Thread David Johnson
This I know, so that is exactly my question. What is the preferred approach in Zope? The contains and containers, or the more explicit methods? On Jan 26, 2007, at 11:04 PM, Douglas Douglas wrote: I think the errors are for the contained objects (the ones with 'containers' instructions o

Re: [Zope3-Users] Containers Contains

2007-01-26 Thread David Johnson
Here is an example that gives me the IInputWidget errors when I use the contains/containers approach: ...interfaces.py... class ICRM(IContainer): """Just a blank container to hold customers.""" contains('.ICustomer') class ICustomer(IContainer,IContained): """A basic customer."""

Re: [Zope3-Users] Containers Contains

2007-01-26 Thread Marius Gedminas
On Fri, Jan 26, 2007 at 07:48:36PM +0100, David Johnson wrote: > When setting up container/contained relationships, what is the proper > approach? Is it the approach outlined in Stephan's book with > IContainer, __setitem__, and preconditions? Or is it "contains" and > "containers"? contain

[Zope3-Users] Containers Contains

2007-01-26 Thread David Johnson
When setting up container/contained relationships, what is the proper approach? Is it the approach outlined in Stephan's book with IContainer, __setitem__, and preconditions? Or is it "contains" and "containers"? I have been having some problems and would be curious the definitive approa