[Zope-Checkins] CVS: Zope2 - Catalog.py:1.60.2.4
Jim Fulton
jim@digicool.com
Fri, 16 Mar 2001 13:22:43 -0500 (EST)
Update of /cvs-repository/Zope2/lib/python/Products/ZCatalog
In directory korak:/tmp/cvs-serv3336
Modified Files:
Tag: zope-2_3-branch
Catalog.py
Log Message:
Grrrrr. Forgot to copy the current length during conversion.
--- Updated File Catalog.py in package Zope2 --
--- Catalog.py 2001/03/15 13:10:29 1.60.2.3
+++ Catalog.py 2001/03/16 18:22:43 1.60.2.4
@@ -188,6 +188,8 @@
self.data=IOBTree()
convert(data, self.data, threshold)
+ self.__len__=BTrees.Length.Length(len(data))
+
uids=self.uids
self.uids=OIBTree()
convert(uids, self.uids, threshold)
@@ -196,7 +198,6 @@
self.paths=IOBTree()
convert(paths, self.paths, threshold)
- self.__len__=BTrees.Length.Length()
for index in self.indexes.values():
index._convertBTrees(threshold)