[Zope-dev] Zope Tests: 5 OK

2007-04-10 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Mon Apr  9 12:00:00 2007 UTC to Tue Apr 10 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Mon Apr  9 20:49:53 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007568.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Mon Apr  9 20:51:23 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007569.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Apr  9 20:52:53 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007570.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Apr  9 20:54:23 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007571.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Apr  9 20:55:53 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007572.html

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] What's the deal with sublocations?

2007-04-10 Thread Stefan H. Holek
Most ObjectEvents are dispatched to sublocations. I was wondering  
whether it is ok for me to expect a certain dispatch order, i.e. top- 
down (container before sublocation) or bottom-up (sublocation before  
container)?


What I find is that this order depends on things like the exact  
interface a handler is registered for and, in Zope 2.9 (+3.2), even  
on the way I run tests (!).


I can only conclude that there is no guaranteed dispatch order. Now,  
should there be? Where can I learn about this contract?


Also see http://www.zope.org/Collectors/Zope/2308

Thanks,
Stefan

--
It doesn't necessarily do it in chronological order, though.
  --Douglas Adams


___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: What's the deal with sublocations?

2007-04-10 Thread Philipp von Weitershausen

Stefan H. Holek wrote:

Most ObjectEvents are dispatched to sublocations.


Well, the ones that deal with the object hierarchy. This mostly concerns 
IObjectMovedEvents and their sub-event types (added, removed). I don't 
think it makes a lot of sense to dispatch other object events.


I was wondering 
whether it is ok for me to expect a certain dispatch order, i.e. 
top-down (container before sublocation) or bottom-up (sublocation before 
container)?


No. The dispatch to sublocations is an event handler itself. One should 
not depend on the execution order of event handlers, therefore you 
should not depend on this dispatch happening before or after your own 
event handler(s) for IObjectMovedEvent.


What I find is that this order depends on things like the exact 
interface a handler is registered for and, in Zope 2.9 (+3.2), even on 
the way I run tests (!).


I can only conclude that there is no guaranteed dispatch order. Now, 
should there be? Where can I learn about this contract?


Again, the contract is don't expect an order.


--
http://worldcookery.com -- Professional Zope documentation and training
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: What's the deal with sublocations?

2007-04-10 Thread Philipp von Weitershausen

Philipp von Weitershausen wrote:

Stefan H. Holek wrote:

Most ObjectEvents are dispatched to sublocations.


Well, the ones that deal with the object hierarchy. This mostly concerns 
IObjectMovedEvents and their sub-event types (added, removed). I don't 
think it makes a lot of sense to dispatch other object events.


I was wondering whether it is ok for me to expect a certain dispatch 
order, i.e. top-down (container before sublocation) or bottom-up 
(sublocation before container)?


No. The dispatch to sublocations is an event handler itself. One should 
not depend on the execution order of event handlers, therefore you 
should not depend on this dispatch happening before or after your own 
event handler(s) for IObjectMovedEvent.


What I find is that this order depends on things like the exact 
interface a handler is registered for and, in Zope 2.9 (+3.2), even on 
the way I run tests (!).


I can only conclude that there is no guaranteed dispatch order. Now, 
should there be? Where can I learn about this contract?


Again, the contract is don't expect an order.


I've rejected http://www.zope.org/Collectors/Zope/2308 therefore.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: What's the deal with sublocations?

2007-04-10 Thread Stefan H. Holek

Thanks!

On 10. Apr 2007, at 18:34, Philipp von Weitershausen wrote:

No. The dispatch to sublocations is an event handler itself. One  
should not depend on the execution order of event handlers,  
therefore you should not depend on this dispatch happening before  
or after your own event handler(s) for IObjectMovedEvent.


--
Anything that, in happening, causes itself to happen again,
happens again.  --Douglas Adams


___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )