[Zodb-checkins] CVS: Zope2/lib/python/ZODB - FileStorage.py:1.60

barry@digicool.com barry@digicool.com
Thu, 14 Jun 2001 14:42:23 -0400 (EDT)


Update of /cvs-repository/Zope2/lib/python/ZODB
In directory korak.digicool.com:/tmp/cvs-serv25094

Modified Files:
	FileStorage.py 
Log Message:
history(): The storage interface API documents the third argument (not
including self) to be called `size' not `length'.  This should be
considered part of the contract of this method, so the keyword
argument name has been changed.



--- Updated File FileStorage.py in package Zope2/lib/python/ZODB --
--- FileStorage.py	2001/05/23 19:03:29	1.59
+++ FileStorage.py	2001/06/14 18:42:22	1.60
@@ -1132,7 +1132,7 @@
 
         return r
 
-    def history(self, oid, version=None, length=1, filter=None):
+    def history(self, oid, version=None, size=1, filter=None):
         self._lock_acquire()
         try:
             r=[]
@@ -1143,7 +1143,7 @@
             wantver=version
 
             while 1:
-                if len(r) >= length: return r
+                if len(r) >= size: return r
                 seek(pos)
                 h=read(42)
                 doid,serial,prev,tloc,vlen,plen = unpack(">8s8s8s8sH8s", h)