Sidnei da Silva wrote at 2005-9-2 17:06 -0300:
>| > 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).
>| 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.
For more information about ZODB, see the ZODB Wiki:
ZODB-Dev mailing list - ZODB-Dev@zope.org