[Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

Chris Withers chris at simplistix.co.uk
Tue Jun 22 01:45:43 EDT 2010


Laurence Rowe wrote:
> """
> After-commit hook
> ------------------
> 
> Sometimes, applications want to execute code after a transaction is
> committed or aborted. 

Okay, but they're not going to be able to do that with an after commit 
hook, since they're never called from abort. The name hints at that, you 
could also go read the code of the abort method in 
transaction._transaction.Transaction.

Unless I'm missing something, in which case, please lemme know...

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list