[Zope3-dev] Re: ObjectHub/Event service: who sends those events anyway?

Chris Withers chrisw@nipltd.com
Tue, 29 Oct 2002 10:10:51 +0000


Steve Alexander wrote:
> 
> It is "delegation" not "indirection".

If it smells like a dog and barks like a dog ;-)

> You don't need to get an adapter to do lots of things with an object.

Good

> You do need to get an adapter if you want to alter an object, and have 
> it fully participate in the Zope 3 framework.

Bad :-(

> For example, you would not need to get such an adapter for a Job in the 
> Job Board example. In that case, a JobBoard entirely manages its Jobs, 
> and the author made a deliberate decision not to use all of the Zope 3 
> framework facilities.

This may be common practice then, is that expected?

> I don't find it rediculous.
> I don't want to mix framework concerns, such as generating events, into 
> my content classes. So, such concerns need to go somewhere else.

How expensiove are calls to getAdapter?

> Yes it is really like that.
> You have a choice though -- you only pay the price if you want those 
> benefits.

*sigh*

Why can't life be perfect and simple?

Chris