[ZODB-Dev] Ordering before commit hooks

Dieter Maurer dieter at handshake.de
Fri Aug 5 13:38:41 EDT 2005


Julien Anguenot wrote at 2005-8-5 12:20 +0200:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hi,
>
>I would like to order the before commit hooks on a transaction by being
>able to specify an order for a subscriber at registration time. For the
>moment, they are called in the order they've been registred.
>
>The order argument could be an integer with a default value to 0 added
>to the registration method.
>
>We could just insert the subscriber wihin the queue according to this
>order parameter if found *or* sorting the queue according to this
>parameter before flushing the queue and calling the hooks.
>
>What do you think ?

+1

-- 
Dieter


More information about the ZODB-Dev mailing list