[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG - TextIndexNG.py:1.2.2.20
Andreas Jung
andreas@digicool.com
Thu, 24 Jan 2002 15:59:19 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG
In directory cvs.zope.org:/tmp/cvs-serv2760/lib/python/Products/PluginIndexes/TextIndexNG
Modified Files:
Tag: ajung-textindexng-branch
TextIndexNG.py
Log Message:
fixed problem where stopwords were not persistent
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/TextIndexNG.py 1.2.2.19 => 1.2.2.20 ===
# StopWords
- if self.stopWords:
- if isinstance(self.stopWords, StringType):
- self._stopwords = StopWords.StopWords(self.stopWords)
- elif isinstance(self.stopWords, InstanceType):
- self._stopwords = self.stopWords
+
+ if isinstance(self.stopWords, StringType):
+ self._stopwords = StopWords.StopWords(self.stopWords)
+ elif isinstance(self.stopWords, InstanceType):
+ self._stopwords = self.stopWord
else:
- self._stopwords = {}
+ self._stopwords = StopWords.StopWords()
+
# Proximity