transaction.py
changeset 8265 9747ab9230ad
parent 5426 0d4853a6e5ee
child 8266 704dda5c07f7
--- a/transaction.py	Thu Feb 23 19:06:14 2012 +0100
+++ b/transaction.py	Mon Feb 27 09:43:15 2012 +0100
@@ -39,8 +39,12 @@
 
 
 class NoSuchTransaction(RepositoryError):
-    pass
+    # Used by CubicWebException
+    msg = _("there is no transaction #%s")
 
+    def __init__(self, txuuid):
+        super(RepositoryError, self).__init__(txuuid)
+        self.txuuid = txuuid
 
 class Transaction(object):
     """an undoable transaction"""