[Zope-Checkins] CVS: Zope2 - TextIndex.py:1.1.2.3

andreas@digicool.com andreas@digicool.com
Tue, 15 May 2001 08:36:57 -0400 (EDT)


Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/TextIndex
In directory korak.digicool.com:/tmp/cvs-serv30324

Modified Files:
      Tag: ajung-dropin-registry
	TextIndex.py 
Log Message:
minor changes for Splitter



--- Updated File TextIndex.py in package Zope2 --
--- TextIndex.py	2001/05/14 20:14:31	1.1.2.2
+++ TextIndex.py	2001/05/15 12:36:56	1.1.2.3
@@ -110,8 +110,8 @@
 
 
 from Products.PluginIndexes import PluggableIndex 
-from   Products.PluginIndexes.ResultList import ResultList
-from Splitter import Splitter,availableSplitters
+from Products.PluginIndexes.ResultList import ResultList
+from Splitter import availableSplitters
 from Lexicon import Lexicon, stop_word_dict
 from Products.PluginIndexes.ResultList import ResultList
 
@@ -177,14 +177,14 @@
 
         # Default Splitter
         self.availableSplitters = availableSplitters
-        self.splitter = self.availableSplitters[0]
+        self.useSplitter        = self.availableSplitters[0]
 
 
         self.clear()
         
         if lexicon is None:
             ## if no lexicon is provided, create a default one
-            self._lexicon = Lexicon()
+            self._lexicon = Lexicon(useSplitter=self.useSplitter)
         else:
             # We need to hold a reference to the lexicon, since we can't
             # really change lexicons.
@@ -677,7 +677,7 @@
     def manage_setPreferences(self,splitter,REQUEST=None,RESPONSE=None,URL1=None):
         """ preferences of TextIndex """
 
-        self.splitter = splitter
+        self.useSplitter = splitter
 
         if RESPONSE:
             RESPONSE.redirect(URL1 + '/manage_main?manage_tabs_message=Preferences%20saved')