[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG - TextIndexNG.py:1.2.2.34
Andreas Jung
andreas@digicool.com
Thu, 14 Feb 2002 19:56:46 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG
In directory cvs.zope.org:/tmp/cvs-serv7579
Modified Files:
Tag: ajung-textindexng-branch
TextIndexNG.py
Log Message:
made editing of stopword working again
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/TextIndexNG.py 1.2.2.33 => 1.2.2.34 ===
print "%-20s %5.5lf secs (%5.2lf %%) " % (k,v,100.0*v/total)
-
-
class TextIndexNGException(Exception): pass
@@ -816,7 +814,7 @@
###################################################################
def getStopWords(self):
- lst = list(self._stopwords.keys())
+ lst = list(self._stopwords.getDict().keys())
lst.sort()
return lst
@@ -825,7 +823,8 @@
def manage_addStopWord(self, newword, RESPONSE=None, URL1=None):
""" add a new stop word """
- self._stopwords[newword] = ''
+ self._stopwords[newword] = ''
+ self._stopwords._p_changed = 1
if RESPONSE:
RESPONSE.redirect(URL1 + '/manage_stopwords?manage_tabs_message=Word%20added')
@@ -835,6 +834,7 @@
""" delete a list of stop words """
for w in words: del self._stopwords[w]
+ self._stopwords._p_changed = 1
if RESPONSE:
RESPONSE.redirect(URL1 + '/manage_stopwords?manage_tabs_message=Word%20deleted')