Julien Anguenot wrote:
-----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 ?

What is the motivation for this?  Can you give any use cases?

I'm -1 on this because it adds complexity to something that I think
should be simple.  It feels like something that is likely to be
missused. I do have an open mind though.

Unfortunately, I won't see your reply for over a week.  I'd
prefer not to see this added to the trunk until we've had a chance
to discuss it a bit more.

Jim

--
Jim Fulton           mailto:[EMAIL PROTECTED]       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

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

Reply via email to