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

Jeremy Hylton jhylton at gmail.com
Sun Apr 3 21:45:46 EDT 2005


BTW, Julien, many of the lists you cross-posted to have obnoxious
members-only posting policies.  As a result, people subscribed to only
some of the lists get nasty grams when they reply-all.  It would be
better if you posted your question to a single list.

Jeremy

On Apr 3, 2005 9:43 PM, Jeremy Hylton <jhylton at gmail.com> wrote:
> 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