[Zope-Checkins] CVS: Zope2 - GlobbingLexicon.py:1.1.2.3
andreas@digicool.com
andreas@digicool.com
Wed, 16 May 2001 12:13:26 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/TextIndex
In directory korak.digicool.com:/tmp/cvs-serv4255
Modified Files:
Tag: ajung-dropin-registry
GlobbingLexicon.py
Log Message:
adjustments to new splitter infrastructure
--- Updated File GlobbingLexicon.py in package Zope2 --
--- GlobbingLexicon.py 2001/05/16 16:09:13 1.1.2.2
+++ GlobbingLexicon.py 2001/05/16 16:13:26 1.1.2.3
@@ -84,7 +84,7 @@
#############################################################################
from Lexicon import Lexicon
-from Splitter import Splitter
+import Splitter
from Products.PluginIndexes.TextIndex.TextIndex import Or
import re, string
@@ -123,8 +123,9 @@
eow = '$'
- def __init__(self):
+ def __init__(self,useSplitter=''):
self.clear()
+ self.SplitterFunc=Splitter.getSplitter(useSplitter)
def clear(self):
self._lexicon = OIBTree()
@@ -289,7 +290,7 @@
## don't do anything, less efficient but there's not much
## sense in stemming a globbing lexicon.
- return Splitter(astring)
+ return self.SplitterFunc(astring)
def createRegex(self, pat):