[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG - BaseProximityLexicon.py:1.1.2.3

Andreas Jung andreas@zope.com
Tue, 8 Jan 2002 11:11:29 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG
In directory cvs.zope.org:/tmp/cvs-serv4607

Modified Files:
      Tag: ajung-textindexng-branch
	BaseProximityLexicon.py 
Log Message:
added getWordIdList()


=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/BaseProximityLexicon.py 1.1.2.2 => 1.1.2.3 ===
         self._inverseLex = IOBTree()
         
+    def getWordIdList(self,words):
+        """ return a list a wordIds for a list of words """
+        return [ self.getWordId(word)   for word in words] 
 
     def getWordId(self, word):
         """ return the word id of 'word' """