Re: [Zope3-dev] ILocation vs IContained

2005-07-10 Thread Jim Fulton
Roger Ineichen wrote: Hi Jim Behalf Of Jim Fulton Sent: Sunday, July 10, 2005 2:23 PM To: Florent Guillaume Cc: zope3-dev@zope.org Subject: Re: [Zope3-dev] ILocation vs IContained Florent Guillaume wrote: I'm having a hard time grasping the reasons why we have both ILocation

RE: [Zope3-dev] ILocation vs IContained

2005-07-10 Thread Roger Ineichen
Hi Jim Behalf Of Jim Fulton > Sent: Sunday, July 10, 2005 2:23 PM > To: Florent Guillaume > Cc: zope3-dev@zope.org > Subject: Re: [Zope3-dev] ILocation vs IContained > > Florent Guillaume wrote: > > I'm having a hard time grasping the reasons why we have > bot

Re: [Zope3-dev] ILocation vs IContained

2005-07-10 Thread Jim Fulton
Florent Guillaume wrote: I'm having a hard time grasping the reasons why we have both ILocation and IContained. Overdesign on my part. class IContained(ILocation): """Objects contained in containers.""" But ILocation provides a __parent__ already, which seems to imply that it's contai

Re: [Zope3-dev] ILocation vs IContained

2005-07-09 Thread Fred Drake
On 7/9/05, Roger Ineichen <[EMAIL PROTECTED]> wrote: > Contained is the mixin class for the __parent__ and __name__ > attributes or not? > > And we used it as this. Otherwise you have to implement > __parent__ and __name__ in your own classes again and again. > > See the commet in the class: > S

Re: [Zope3-dev] ILocation vs IContained

2005-07-09 Thread Fred Drake
On 7/9/05, Roger Ineichen <[EMAIL PROTECTED]> wrote: > No, I don't think so. Or at least if you create a object > from it's factory e.g. in a addform this isn't true > till the object get added to the container. Well, I think we're not supposed to be creating objects that inherit from Contained; I

RE: [Zope3-dev] ILocation vs IContained

2005-07-09 Thread Roger Ineichen
Regards Roger Ineichen Projekt01 GmbH www.projekt01.ch _ END OF MESSAGE > -Original Message- > From: Fred Drake [mailto:[EMAIL PROTECTED] > Sent: Sunday, July 10, 2005 12:17 AM > To: [EMAIL PROTECTED] > Cc: zope3-dev@zope.org > Subje

RE: [Zope3-dev] ILocation vs IContained

2005-07-09 Thread Roger Ineichen
Hi Fred Behalf Of Fred Drake > Sent: Saturday, July 09, 2005 11:25 PM > To: Florent Guillaume > Cc: zope3-dev@zope.org > Subject: Re: [Zope3-dev] ILocation vs IContained > > On 7/8/05, Florent Guillaume <[EMAIL PROTECTED]> wrote: > > I'm having a hard time gr

Re: [Zope3-dev] ILocation vs IContained

2005-07-09 Thread Fred Drake
On 7/8/05, Florent Guillaume <[EMAIL PROTECTED]> wrote: > I'm having a hard time grasping the reasons why we have both > ILocation and IContained. The documentation is slim; I'd certainly appreciate hearing a definitive clarification from Jim as well. > class IContained(ILocation): > """Obje

Re: [Zope3-dev] ILocation vs IContained

2005-07-09 Thread Stephan Richter
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