[ZODB-Dev] Ordering before commit hooks

Sidnei da Silva sidnei at enfoldsystems.com
Fri Sep 2 16:06:01 EDT 2005


On Fri, Sep 02, 2005 at 08:55:28PM +0200, Dieter Maurer wrote:
| Sidnei da Silva wrote at 2005-9-1 17:13 -0300:
| > ...
| >Yes, he's the one in charge of registering the subscribers so they are
| >called in the order he wants them to.
| >
| >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?

-- 
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com


More information about the ZODB-Dev mailing list