[Zodb-checkins] CVS: Zope3/src/zodb/zeo - stubs.py:1.7 server.py:1.11 client.py:1.11

Jeremy Hylton jeremy at zope.com
Mon May 19 12:02:52 EDT 2003


Update of /cvs-repository/Zope3/src/zodb/zeo
In directory cvs.zope.org:/tmp/cvs-serv26744/zeo

Modified Files:
	stubs.py server.py client.py 
Log Message:
Add getSerial support to ZEO.

Also, remove use of apply.


=== Zope3/src/zodb/zeo/stubs.py 1.6 => 1.7 ===
--- Zope3/src/zodb/zeo/stubs.py:1.6	Thu Mar 13 16:32:30 2003
+++ Zope3/src/zodb/zeo/stubs.py	Mon May 19 11:02:51 2003
@@ -157,6 +157,9 @@
     def loadSerial(self, oid, serial):
         return self.rpc.call('loadSerial', oid, serial)
 
+    def getSerial(self, oid):
+        return self.rpc.call('getSerial', oid)
+
     def modifiedInVersion(self, oid):
         return self.rpc.call('modifiedInVersion', oid)
 
@@ -200,5 +203,6 @@
     def __init__(self, rpc, name):
         self.rpc = rpc
         self.name = name
+        
     def call(self, *a, **kwa):
-        return apply(self.rpc.call, (self.name,)+a, kwa)
+        return self.rpc.call(self.name, *a, **kwa)


=== Zope3/src/zodb/zeo/server.py 1.10 => 1.11 ===
--- Zope3/src/zodb/zeo/server.py:1.10	Thu Mar 13 17:11:35 2003
+++ Zope3/src/zodb/zeo/server.py	Mon May 19 11:02:51 2003
@@ -204,6 +204,9 @@
                 raise
         return p, s, v, pv, sv
 
+    def getSerial(self, oid):
+        return self.storage.getSerial(oid)
+
     def getInvalidations(self, tid):
         invtid, invlist = self.server.get_invalidations(tid)
         if invtid is None:


=== Zope3/src/zodb/zeo/client.py 1.10 => 1.11 ===
--- Zope3/src/zodb/zeo/client.py:1.10	Fri Apr 18 18:12:26 2003
+++ Zope3/src/zodb/zeo/client.py	Mon May 19 11:02:51 2003
@@ -603,6 +603,10 @@
         """Storage API: load a historical revision of an object."""
         return self._server.loadSerial(oid, serial)
 
+    def getSerial(self, oid):
+        """Storage API: Return the current serial number for oid."""
+        return self._server.getSerial(oid)
+
     def load(self, oid, version):
         """Storage API: return the data for a given object.
 




More information about the Zodb-checkins mailing list