[Zodb-checkins] CVS: Zope2/lib/python/ZODB - Transaction.py:1.29

andreas@serenade.digicool.com andreas@serenade.digicool.com
Mon, 4 Jun 2001 08:28:47 -0400


Update of /cvs-repository/Zope2/lib/python/ZODB
In directory serenade:/tmp/cvs-serv15591/lib/python/ZODB

Modified Files:
	Transaction.py 
Log Message:
Transaction objects with self.id==None could not print themselves (COllector #2275)



--- Updated File Transaction.py in package Zope2/lib/python/ZODB --
--- Transaction.py	2001/03/29 17:43:19	1.28
+++ Transaction.py	2001/06/04 12:28:46	1.29
@@ -132,7 +132,7 @@
         r._extension=self._extension
         return r
         
-    def __str__(self): return "%.3f\t%s" % (self._id, self.user)
+    def __str__(self): return "%.3f\t%s" % (self._id or 0, self.user)
 
     def __del__(self):
         if self._objects: self.abort(freeme=0)