Commit 8104845d authored by Andreas Jung's avatar Andreas Jung

- Collector #325: adding a new TextIndex to an existing Catalog

        cleared the standard Vocabulary.
parent 88933116
......@@ -161,6 +161,9 @@ Zope Changes
- Collector #303: Properties of type 'long' got truncated
- Collector #325: adding a new TextIndex to an existing Catalog
cleared the standard Vocabulary.
Zope 2.5.1 beta 1
Bugs Fixed
......
......@@ -14,8 +14,7 @@
"""Text Index
"""
__version__ = '$Revision: 1.26 $'[11:-2]
__version__ = '$Revision: 1.27 $'[11:-2]
import re
......@@ -160,7 +159,7 @@ class TextIndex(PluggableIndex.PluggableIndex, Persistent,
"""Reinitialize the text index."""
self._index = IOBTree()
self._unindex = IOBTree()
if self.getLexicon():
if self.getLexicon() and self.vocabulary_id=='__userdefined__':
self.getLexicon().clear()
self._lexicon = None
......
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