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):
try: self.__len__.set(0)
except AttributeError: self.__len__=BTrees.Length.Length()
for index in self.indexes.values():
if hasattr(index, '__of__'): index=index.__of__(self)
index.clear()
for index in self.indexes.keys():
self.getIndex(index).clear()
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