[Zope-Checkins] CVS: Products/Transience -
TransactionHelper.py:1.1.2.2
Chris McDonough
chrism at plope.com
Tue Sep 14 17:33:44 EDT 2004
Update of /cvs-repository/Products/Transience
In directory cvs.zope.org:/tmp/cvs-serv5306
Modified Files:
Tag: chrism-pre273-branch
TransactionHelper.py
Log Message:
Make tests pass.
=== Products/Transience/TransactionHelper.py 1.1.2.1 => 1.1.2.2 ===
--- Products/Transience/TransactionHelper.py:1.1.2.1 Sat Sep 11 20:59:32 2004
+++ Products/Transience/TransactionHelper.py Tue Sep 14 17:33:43 2004
@@ -1,8 +1,12 @@
import time
-class PreventTransactionCommit:
- pass
+class PreventTransactionCommit(Exception):
+ def __init__(self, reason):
+ self. reason = reason
+ def __str__(self):
+ return "Uncommittable transaction: " % self.reason
+
class UncommittableJar:
""" A jar that cannot be committed """
def __init__(self, reason):
More information about the Zope-Checkins
mailing list