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

Tim Peters tim.one at comcast.net
Thu Sep 9 14:20:47 EDT 2004


Log message for revision 27481:
  Forward port from Zope 2.7 branch.
  
  The ConflictError.get_{old,new}_serial() methods each did what the other
  was supposed to do.
  


Changed:
  U   ZODB/branches/3.3/NEWS.txt
  U   ZODB/branches/3.3/src/ZODB/POSException.py


-=-
Modified: ZODB/branches/3.3/NEWS.txt
===================================================================
--- ZODB/branches/3.3/NEWS.txt	2004-09-09 15:04:02 UTC (rev 27480)
+++ ZODB/branches/3.3/NEWS.txt	2004-09-09 18:20:47 UTC (rev 27481)
@@ -68,6 +68,13 @@
     serial this txn started with 0x034414228c3728d5 2002-04-14 20:50:32.863000,
     serial currently committed 0x03441422948b4399 2002-04-14 20:50:34.815000)
 
+ConflictError
+-------------
+
+The undocumented ``get_old_serial()`` and ``get_new_serial()`` methods
+were swapped (the first returned the new serial, and the second returned
+the old serial).
+
 Tools
 -----
 

Modified: ZODB/branches/3.3/src/ZODB/POSException.py
===================================================================
--- ZODB/branches/3.3/src/ZODB/POSException.py	2004-09-09 15:04:02 UTC (rev 27480)
+++ ZODB/branches/3.3/src/ZODB/POSException.py	2004-09-09 18:20:47 UTC (rev 27481)
@@ -112,10 +112,10 @@
         return self.class_name
 
     def get_old_serial(self):
-        return self.serials[0]
+        return self.serials[1]
 
     def get_new_serial(self):
-        return self.serials[1]
+        return self.serials[0]
 
     def get_serials(self):
         return self.serials



More information about the Zodb-checkins mailing list