[Zope3-Users] Ordering of subscribers
Lennart Regebro
regebro at nuxeo.com
Tue Dec 14 09:31:57 EST 2004
Stephan Richter wrote:
> On Monday 13 December 2004 11:11, Florent Guillaume wrote:
>
>>What's the current best practice if you have several subscribers to an
>>event that need to be called in a given order ? Or rather, one has to be
>>called after another.
>>
>>It's more a gedankenexperiment than anything else at the moment, but I'm
>>interested in case it's needed for a correct backport for Zope 3 events
>>to Zope 2.
>>
>>Potential use case: on a Modified event, a cataloging subscriber wants
>>to catalog the object *after* it has been annotated by a workflow
>>subscriber.
>
>
> I am pretty sure that we are not able to sort subscribers yet, but I remember
> it being discussed before. I think the best way would actually be to be able
> to say: this subscriber must be executed before me, like a condition. Maybe
> an ordering condition would help? I dunno.
Maybe annotating subscribers would always be called first, in any case?
Then it only becomes a problem if different annotating subscribes must
be called in order, and that seems highly unusual.
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
More information about the Zope3-users
mailing list