[Zope-Checkins] CVS: Zope/lib/python/tempstorage - TemporaryStorage.py:1.1.14.1

Jim Fulton cvs-admin at zope.org
Thu Nov 27 10:34:00 EST 2003


Update of /cvs-repository/Zope/lib/python/tempstorage
In directory cvs.zope.org:/tmp/cvs-serv7869/lib/python/tempstorage

Modified Files:
      Tag: Zope-2_8-devel-branch
	TemporaryStorage.py 
Log Message:
Got tests to pass except test that was previously (and still) failing
on head.


=== Zope/lib/python/tempstorage/TemporaryStorage.py 1.1 => 1.1.14.1 ===
--- Zope/lib/python/tempstorage/TemporaryStorage.py:1.1	Sun Aug 17 16:53:50 2003
+++ Zope/lib/python/tempstorage/TemporaryStorage.py	Thu Nov 27 10:33:58 2003
@@ -128,10 +128,13 @@
             if self._index.has_key(oid):
                 oserial=self._index[oid]
                 if serial != oserial:
-                    data=self.tryToResolveConflict(oid, oserial, serial, data)
-                    if not data:
-                        raise POSException.ConflictError(oid=oid,
-                                                    serials=(oserial, serial))
+                    rdata = self.tryToResolveConflict(oid, oserial,
+                                                      serial, data)
+                    if rdata is None:
+                        raise POSException.ConflictError(
+                            oid=oid, serials=(oserial, serial), data=data)
+                    else:
+                        data = rdata
             else:
                 oserial = serial
             newserial=self._serial




More information about the Zope-Checkins mailing list