[Zope3-dev] Should object copy events be dispatched for sublocations?

Jim Fulton jim at zope.com
Mon Mar 14 10:54:28 EST 2005


Florent Guillaume wrote:
> Garrett Smith <garrett at mojave-corp.com> wrote:
> 
>>If an object having sublocations is copied, an ObjectCopiedEvent is
>>fired only for the top-most object. I think a dispatcher should notify
>>for all sublocations in the same way object move events are dispatched.

I think Garrett decided this wasn't necessary.

> Does this mean 1000s of events sent if there are 1000s of sublocations?
> Isn't that a bit too much?

We do dispatches a move event to each sublocation.  Yes, this is a
bit much, but not too much.  It may be needed to maintain integrity
constraints, so we have t dispatch it.

Moving somethng big is expensive.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the Zope3-dev mailing list