Commit 36e3f3b5 authored by Andreas Jung's avatar Andreas Jung

- Catalog.clear(): fixed handling of _length attribute (caused import

        problems for some .zexp files e.g. Squishdot instances)
parent f2d96baa
......@@ -26,6 +26,9 @@ Zope Changes
Bugs Fixed
- Catalog.clear(): fixed handling of _length attribute (caused import
problems for some .zexp files e.g. Squishdot instances)
Zope 2.8.1 (2005/08/11)
Features added
......
......@@ -78,7 +78,6 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
# object unique identifier to the rid, and self.paths is a
# mapping of the rid to the unique identifier.
self._length = BTrees.Length.Length()
self.clear()
if brains is not None:
......@@ -103,7 +102,7 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
self.data = IOBTree() # mapping of rid to meta_data
self.uids = OIBTree() # mapping of uid to rid
self.paths = IOBTree() # mapping of rid to uid
self._length.set(0)
self._length = BTrees.Length.Length()
for index in self.indexes.keys():
self.getIndex(index).clear()
......
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