[ZODB-Dev] Ordering before commit hooks

Julien Anguenot ja at nuxeo.com
Mon Aug 8 12:29:00 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I created a branch there :

http://svn.zope.org/ZODB/branches/anguenot-ordering-beforecommitsubscribers/

See changeset 37789

Check the changeset log for more information about the implementation.

	J.


Julien Anguenot wrote:
> 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 ?
> 
> 	J.
> 
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev at zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFC94hMGhoG8MxZ/pIRAiUBAJ4pSURhy/eJVTADup9n4ZCsMsYc6ACfU+Wp
8U5RRBJmIJwgXKS4rtyz9OE=
=+UCj
-----END PGP SIGNATURE-----


More information about the ZODB-Dev mailing list