[Zope3-dev] Why this set of interfaces ?

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Jul 15 14:34:55 EDT 2005


On Monday 11 July 2005 05:46, Bernd Dorn wrote:
> Pupeno wrote:
> > I am reading
> > http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Boo
> >k/contentobject.html and I am wondering about the choice of interfaces.
> > Why not just making an interface IMessage(IContainer) (instead of
> > IMessage(Interface)) and avoid having to make
> > IMessageContained(IContained) and
> > IMessageContainer(IContainer) ?
>
> i think because of the preconditions - to define them you need IMessage
> defined, which would not be the case in the class definition of IMessage

Right, it allows us to avoid recursion problems and abstract interfaces 
better.

Pupeno, please note that you should really use the paper copy. I am not 
currently supporting the online version, since I know it has some mistakes in 
it.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-dev mailing list