[ZCM] [ZC] 2308/ 2 Reject "Sublocations: Event dispatch semi-deterministic"

"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Tue, 10 Apr 2007 13:20:01 -0400
Newsgroups gmane.comp.web.zope.devel.collector-monitor
Message-ID <[email protected]>
Issue #2308 Update (Reject) "Sublocations: Event dispatch semi-deterministic"
 Status Rejected, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/2308

==============================================================
= Reject - Entry #2 by philikon on Apr 10, 2007 1:20 pm

 Status: Accepted => Rejected

While the particular implementation of the event handler registry in zope.component allows for some predictability, this should be considered an implementation detail. Officially, one should not depend on the execution order of event handlers. I'm rejecting this issue therefore since there's no bug.
________________________________________
= Request - Entry #1 by shh on Apr 8, 2007 6:32 pm

 Status: Pending => Accepted

 Supporters added: shh

Follow-up to #2298.

Handlers for sublocations are sometimes called top-down, other times bottom-up. I have not yet found out why.

Apparently, ObjectEvents registered for IItem are top-down while ObjectEvents registered for custom interfaces are bottom-up.

I'll have tests ready as time allows.
==============================================================