[ZODB-Dev] Re: [Zope-dev] Re: post publishing hook

Jeremy Hylton jhylton at gmail.com
Sun Apr 3 21:43:02 EDT 2005


On Apr 3, 2005 4:38 PM, Julien Anguenot <ja at nuxeo.com> wrote:
> Is there a way to hook before the first transaction commit phase ?

If you register a synchronizer with the transaction manager, it's
beforeCompletion() method will be called immediately before changing
the transaction's state to committing.  This hook was intended in part
to support use cases like "do something magic to the transaction
before it commits."  It looks like the registerSynch() method of the
transaction manager is undocumented, but that is an oversight.

Jeremy


More information about the ZODB-Dev mailing list