[Zodb-checkins] CVS: ZODB3/ZEO - StorageServer.py:1.96 ServerStub.py:1.15 ClientStorage.py:1.99

Jeremy Hylton jeremy at zope.com
Fri May 30 15:17:11 EDT 2003


Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv15509/ZEO

Modified Files:
	StorageServer.py ServerStub.py ClientStorage.py 
Log Message:
Add getSerial() method to ZEO to pass new test.

Disable test for ZEO + MappingStorage, since it doesn't support undo.


=== ZODB3/ZEO/StorageServer.py 1.95 => 1.96 ===
--- ZODB3/ZEO/StorageServer.py:1.95	Wed May 14 15:48:25 2003
+++ ZODB3/ZEO/StorageServer.py	Fri May 30 14:17:10 2003
@@ -119,6 +119,7 @@
         """Delegate several methods to the storage"""
         self.versionEmpty = self.storage.versionEmpty
         self.versions = self.storage.versions
+        self.getSerial = self.storage.getSerial
         self.history = self.storage.history
         self.load = self.storage.load
         self.loadSerial = self.storage.loadSerial


=== ZODB3/ZEO/ServerStub.py 1.14 => 1.15 ===
--- ZODB3/ZEO/ServerStub.py:1.14	Wed Apr 30 13:14:33 2003
+++ ZODB3/ZEO/ServerStub.py	Fri May 30 14:17:10 2003
@@ -104,6 +104,9 @@
     def load(self, oid, version):
         return self.rpc.call('load', oid, version)
 
+    def getSerial(self, oid):
+        return self.rpc.call('getSerial', oid)
+
     def loadSerial(self, oid, serial):
         return self.rpc.call('loadSerial', oid, serial)
 


=== ZODB3/ZEO/ClientStorage.py 1.98 => 1.99 ===
--- ZODB3/ZEO/ClientStorage.py:1.98	Fri May 30 04:15:23 2003
+++ ZODB3/ZEO/ClientStorage.py	Fri May 30 14:17:10 2003
@@ -625,6 +625,10 @@
         """
         return self._server.history(oid, version, length)
 
+    def getSerial(self, oid):
+        """Storage API: return current serial number for oid."""
+        return self._server.getSerial(oid)
+
     def loadSerial(self, oid, serial):
         """Storage API: load a historical revision of an object."""
         return self._server.loadSerial(oid, serial)




More information about the Zodb-checkins mailing list