Julien Anguenot wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I implemented a pre-commit hook on transaction supporting subscribers
within CPS for our indexation use case. (for ZODB-3.2.x on
Zope-2.7.x)

Cool

if you're interested to take a look at it :

http://lists.nuxeo.com/pipermail/cps-devel/2005-April/001357.html

I get a traceback from viewcvs when I try to view the patch.

The difference I can see with your proposal is the abort() hook facility
that can be a good thing especially if the subscriber code has to
communicate with external programs for rollback purpose.

I suggest that if you are going to "communicate with external programs for rollback purpose", it would be much better to participate as a data manager.

I would say that the main difference is that with the simple hook
facility I proposed, you can just register simple callables. You
don't have to create a class.

I also don't see any point in making it the responsibility of
the hook to register itself, or what the queue business is about.

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