[Zope-CVS] CVS: Products/ZCTextIndex/tests - indexhtml.py:1.8

Jeremy Hylton jeremy@zope.com
Fri, 17 May 2002 17:15:09 -0400


Update of /cvs-repository/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv20712

Modified Files:
	indexhtml.py 
Log Message:
Use the same stop list for both indexes.


=== Products/ZCTextIndex/tests/indexhtml.py 1.7 => 1.8 ===
 def make_old_index():
     from Products.PluginIndexes.TextIndex.TextIndex import TextIndex
-    from Products.PluginIndexes.TextIndex.Lexicon \
-         import Lexicon, stop_word_dict
+    from Products.PluginIndexes.TextIndex.Lexicon  import Lexicon
+    from Products.ZCTextIndex.StopDict import get_stopdict
 
-    l = Lexicon(stop_word_dict)
+    l = Lexicon(get_stopdict())
     l.SplitterFunc = MySplitter()
     return TextIndex("read", lexicon=l)