-----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 <[EMAIL PROTECTED]> 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----- _______________________________________________ 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