Commit 5ee45a6d authored by Casey Duncan's avatar Casey Duncan

Improved dogfood consumption

parent f982e899
...@@ -81,9 +81,8 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base): ...@@ -81,9 +81,8 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
try: self.__len__.set(0) try: self.__len__.set(0)
except AttributeError: self.__len__=BTrees.Length.Length() except AttributeError: self.__len__=BTrees.Length.Length()
for index in self.indexes.values(): for index in self.indexes.keys():
if hasattr(index, '__of__'): index=index.__of__(self) self.getIndex(index).clear()
index.clear()
def _convertBTrees(self, threshold=200): def _convertBTrees(self, threshold=200):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment