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

Andreas Jung andreas@digicool.com
Wed, 27 Feb 2002 20:23:17 -0500


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

Modified Files:
      Tag: ajung-textindexng-branch
	TextIndexNG.py 
Log Message:
added converters support through ZMI


=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/TextIndexNG.py 1.2.2.45 => 1.2.2.46 ===
 import indexsupport
 import TextIndexCommon
-import Converter
+import ConverterRegistry
 
 
 class Timer:
@@ -108,10 +108,10 @@
          'help': ('TextIndex','TextIndex_Settings.stx')},
     )
 
-    _all_options = ('useSplitter','splitterMaxLen','splitterIndexNumbers',
-         'splitterSingleChars','splitterCasefolding','useStemmer','useOperator',
-         'useGlobbing','lexicon','nearDistance','useSimilarity',
-         'stopWords','thesaurus','characterMapping'
+    _all_options = ('useSplitter', 'splitterMaxLen', 'splitterIndexNumbers',
+         'splitterSingleChars', 'splitterCasefolding', 'useStemmer', 'useOperator',
+         'useGlobbing', 'lexicon', 'nearDistance', 'useSimilarity',
+         'stopWords', 'thesaurus', 'characterMapping', 'useConverter'
         )
 
     query_options = ("query","operator")
@@ -181,6 +181,10 @@
         # Normalizer: characterMapping
         self.charMapping   = getattr(extra,'characterMapping', None) or None
 
+
+        # use converters from the ConvertersRegistry
+        self.useConverter = getattr(extra,'useConverter'), 0)
+
         if verbose: self.debugOn()
         else:       self.debugOff()
 
@@ -880,7 +884,6 @@
         RESPONSE.write( IO.getvalue() )
         
         return
-
 
 
     ###################################################################