[Zope-Checkins] SVN: Zope/trunk/lib/python/OFS/History.py Appearently in former versions 'serial' was used as key to

Andreas Jung andreas at andreas-jung.com
Thu Sep 30 16:12:01 EDT 2004

Log message for revision 27719:
  Appearently in former versions 'serial' was used as key to
  store history informations. In ZODB 2.8 'tid' is used.
  At least the management screen is showing up again however
  the 'description' value shows only garbage. Also there might a 
  problem with backward compatibility.

  U   Zope/trunk/lib/python/OFS/History.py

Modified: Zope/trunk/lib/python/OFS/History.py
--- Zope/trunk/lib/python/OFS/History.py	2004-09-30 19:17:53 UTC (rev 27718)
+++ Zope/trunk/lib/python/OFS/History.py	2004-09-30 20:12:00 UTC (rev 27719)
@@ -60,6 +60,7 @@
     def __getitem__(self, key):
+        print 'key', key
         serial=apply(pack, ('>HHHH',)+tuple(map(int, key.split('.'))))
         if serial == self._p_serial: return self
@@ -121,7 +122,7 @@
         for d in r:
-            d['key']='.'.join(map(str, unpack(">HHHH", d['serial'])))
+            d['key']='.'.join(map(str, unpack(">HHHH", d['tid'])))
         return r

More information about the Zope-Checkins mailing list