[ZODB-Dev] Ordering before commit hooks

Dieter Maurer dieter at handshake.de
Sun Sep 4 15:27:52 EDT 2005


Sidnei da Silva wrote at 2005-9-2 17:06 -0300:
> ...
>| >So:
>| >
>| >  event(IBeforeSubsystem, SubSystem)
>| >  execute SubSystem
>| >  event(IAfterSubsystem, Subsystem)
>| >
>| >Back to my example, 'B' would subscribe to 'event(IAfterSubsystem,
>| >A)', and 'AB' could subscribe to 'event(IBeforeSubsystem, B)'.
>| 
>| You mean the integrator would subscribe "B" to "event(after, A)"
>| and "AB" to "event(before, B)"?
>| 
>| That is near what I am looking for (the individual systems do not
>| know about each other -- only the integrator does).
>
>Yes.
>
>| However, I find it more natural to use numbers on a global
>| scale to coordinate the subsystems than explicit tighing systems
>| on one another.
>
>Can you give a simple example?

In your example, the integrator would assign (e.g.)
"0" to "A", "10" to "B" and "5" to "AB".
Any other numbers "n_a", "n_ab" and "n_b" with
"n_a < n_ab < nb" would do as well.

-- 
Dieter


More information about the ZODB-Dev mailing list