[Checkins] SVN: z3c.dobbin/trunk/src/z3c/dobbin/session.py When aborting the transaction, it should suffice to clear the pending items from the session.

Malthe Borch mborch at gmail.com
Wed May 21 13:14:01 EDT 2008


Log message for revision 86880:
  When aborting the transaction, it should suffice to clear the pending items from the session.

Changed:
  U   z3c.dobbin/trunk/src/z3c/dobbin/session.py

-=-
Modified: z3c.dobbin/trunk/src/z3c/dobbin/session.py
===================================================================
--- z3c.dobbin/trunk/src/z3c/dobbin/session.py	2008-05-21 13:28:56 UTC (rev 86879)
+++ z3c.dobbin/trunk/src/z3c/dobbin/session.py	2008-05-21 17:13:59 UTC (rev 86880)
@@ -65,7 +65,10 @@
         self.registered = False
 
     def tpc_abort(self, transaction):
-        raise NotImplemented("Abort not implemented.")
+        # unset pending state
+        session = Session()
+        del session._d_pending[uuid]
+        
         self.registered = False
 
     abort = tpc_abort



More information about the Checkins mailing list