Skip to content

Commit

Permalink
- Catalog.clear(): fixed handling of _length attribute (caused import
Browse files Browse the repository at this point in the history
        problems for some .zexp files e.g. Squishdot instances)
  • Loading branch information
zopyx committed Aug 16, 2005
1 parent 9405548 commit 7dcb64b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Catalog.py
Expand Up @@ -78,7 +78,6 @@ def __init__(self, vocabulary=None, brains=None):
# 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:
Expand All @@ -103,7 +102,7 @@ def clear(self):
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()
Expand Down

0 comments on commit 7dcb64b

Please sign in to comment.