[Zope-Checkins] CVS: Packages/ZEO - ServerStub.py:1.16.6.3
Tim Peters
tim.one at comcast.net
Fri Apr 22 15:36:37 EDT 2005
Update of /cvs-repository/Packages/ZEO
In directory cvs.zope.org:/tmp/cvs-serv20696/ZEO
Modified Files:
Tag: Zope-2_7-branch
ServerStub.py
Log Message:
DemoStorage: Added implementations for registerDB() and new_oid(). As
Tres discovered the hard way, wrapping a ZEO client storage as a
DemoStorage base storage yields insane behavior otherwise.
BaseStorage.new_oid(): Rewrite to eliminate recursion, and hence also the
need for the undocumented and irregular `last=` argument.
Other: removed the `last=` argument to new_oid() every place that felt
compelled to spread that insanity ;-). Seriously, it served no purpose
at all elsewhere, and looks like people just cut 'n pasted in fear.
=== Packages/ZEO/ServerStub.py 1.16.6.2 => 1.16.6.3 ===
--- Packages/ZEO/ServerStub.py:1.16.6.2 Tue Sep 30 14:50:57 2003
+++ Packages/ZEO/ServerStub.py Fri Apr 22 15:36:07 2005
@@ -120,11 +120,8 @@
def modifiedInVersion(self, oid):
return self.rpc.call('modifiedInVersion', oid)
- def new_oid(self, last=None):
- if last is None:
- return self.rpc.call('new_oid')
- else:
- return self.rpc.call('new_oid', last)
+ def new_oid(self):
+ return self.rpc.call('new_oid')
def store(self, oid, serial, data, version, trans):
return self.rpc.call('store', oid, serial, data, version, trans)
More information about the Zope-Checkins
mailing list