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

Julien Anguenot ja at nuxeo.com
Sun Apr 3 22:55:31 EDT 2005


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

Thanks a lot or the answer. I found previous discussions and changelogs
 for the Synchronizers and the beforeCompletion() method. It seems it is
what we need but this is included within ZODB >= 3.3 and we are
currently using Zope-2.7 with ZODB-3.2. We'll have to wait to use this
feature within CPS thern...

I guess I should patch the commit() and abort() methods of the
Transaction class while waiting for the ZODB-3.3 by adding a before
commit hook myself or do I have other options ?

	J.

P.S : Sorry, for the cross-post...

Jeremy Hylton 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


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

iD8DBQFCUKyjGhoG8MxZ/pIRAvijAJ9NHT5zy+dI+fvxd+LQsiQJgsf+WwCeNaXc
7yLzIjC1Bo10E6c1HcjenLk=
=hfL1
-----END PGP SIGNATURE-----


More information about the ZODB-Dev mailing list