[Zodb-checkins] SVN: ZODB/branches/3.4/ Forward port from 2.7 branch.

Tim Peters tim.one at comcast.net
Tue Jun 14 17:44:08 EDT 2005


Log message for revision 30798:
  Forward port from 2.7 branch.
  
  UndoSearch._readnext():  Add the transaction size to the return value.
  

Changed:
  U   ZODB/branches/3.4/NEWS.txt
  U   ZODB/branches/3.4/src/ZODB/FileStorage/FileStorage.py

-=-
Modified: ZODB/branches/3.4/NEWS.txt
===================================================================
--- ZODB/branches/3.4/NEWS.txt	2005-06-14 19:49:09 UTC (rev 30797)
+++ ZODB/branches/3.4/NEWS.txt	2005-06-14 21:44:08 UTC (rev 30798)
@@ -1,3 +1,19 @@
+What's new in ZODB3 3.4a1?
+==========================
+Release date: DD-MMM-2005
+
+-3.4.1a1 DD-MMM-2005
+
+FileStorage.UndoSearch
+----------------------
+
+- (3.4.1a1) The ``_readnext()`` method now returns the transaction size as
+  the value of the "size" key.  Thanks to Dieter Maurer for the patch, from
+  http://mail.zope.org/pipermail/zodb-dev/2003-October/006157.html. "This is
+  very valuable when you want to spot strange transaction sizes via Zope's
+  'Undo' tab".
+
+
 What's new in ZODB3 3.4?
 ========================
 Release date: 09-Jun-2005

Modified: ZODB/branches/3.4/src/ZODB/FileStorage/FileStorage.py
===================================================================
--- ZODB/branches/3.4/src/ZODB/FileStorage/FileStorage.py	2005-06-14 19:49:09 UTC (rev 30797)
+++ ZODB/branches/3.4/src/ZODB/FileStorage/FileStorage.py	2005-06-14 21:44:08 UTC (rev 30798)
@@ -2088,6 +2088,7 @@
         d = {'id': base64.encodestring(tid).rstrip(),
              'time': TimeStamp(tid).timeTime(),
              'user_name': u,
+             'size': tl,
              'description': d}
         d.update(e)
         return d



More information about the Zodb-checkins mailing list