[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG - TextIndexNG.py:1.2.2.21
Andreas Jung
andreas@digicool.com
Sun, 3 Feb 2002 14:11:15 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG
In directory cvs.zope.org:/tmp/cvs-serv887
Modified Files:
Tag: ajung-textindexng-branch
TextIndexNG.py
Log Message:
getStopWords() now returns a sorted list
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/TextIndexNG.py 1.2.2.20 => 1.2.2.21 ===
def getStopWords(self):
- return self._stopwords.items()
+ lst = list(self._stopwords.keys())
+ lst.sort()
+
+ return lst
+
def manage_addStopWord(self, newword, RESPONSE=None, URL1=None):
""" add a new stop word """
@@ -766,6 +770,11 @@
if RESPONSE:
RESPONSE.redirect(URL1 + '/manage_stopwords?manage_tabs_message=Word%20deleted')
+
+
+ ###################################################################
+ # TextIndexNG preferences
+ ###################################################################
def manage_setPreferences(self,extra,
REQUEST=None,RESPONSE=None,URL2=None):