[Checkins] SVN: transaction/trunk/transaction/_transaction.py Clarify that commit hooks are not called for transaction.abort()

Laurence Rowe l at lrowe.co.uk
Wed Dec 15 19:37:35 EST 2010


Log message for revision 118940:
  Clarify that commit hooks are not called for transaction.abort()

Changed:
  U   transaction/trunk/transaction/_transaction.py

-=-
Modified: transaction/trunk/transaction/_transaction.py
===================================================================
--- transaction/trunk/transaction/_transaction.py	2010-12-15 22:57:48 UTC (rev 118939)
+++ transaction/trunk/transaction/_transaction.py	2010-12-16 00:37:35 UTC (rev 118940)
@@ -55,8 +55,8 @@
 After-commit hook
 ------------------
 
-Sometimes, applications want to execute code after a transaction is
-committed or aborted. For example, one might want to launch non
+Sometimes, applications want to execute code after a transaction commit
+attempt succeeds or aborts. For example, one might want to launch non
 transactional code after a successful commit. Or still someone might
 want to launch asynchronous code after.  A post-commit hook is
 available for such use cases: use addAfterCommitHook(), passing it a
@@ -64,7 +64,7 @@
 value representing the status of the commit operation as first
 argument (true if successfull or false iff aborted) preceding its
 arguments at the start of the commit (but not for substransaction
-commits).
+commits). Commit hooks are not called for transaction.abort().
 
 Error handling
 --------------



More information about the checkins mailing list