[Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex - HTMLSplitter.py:1.10.8.1 Lexicon.py:1.17.8.1 ZCTextIndex.py:1.34.4.3
Chris McDonough
chrism@zope.com
Fri, 3 Jan 2003 01:33:52 -0500
Update of /cvs-repository/Zope/lib/python/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv27194/ZCTextIndex
Modified Files:
Tag: chrism-install-branch
HTMLSplitter.py Lexicon.py ZCTextIndex.py
Log Message:
Merging chrism-install-branch with HEAD (hopefully for one of the last
times).
=== Zope/lib/python/Products/ZCTextIndex/HTMLSplitter.py 1.10 => 1.10.8.1 ===
--- Zope/lib/python/Products/ZCTextIndex/HTMLSplitter.py:1.10 Thu May 23 11:05:34 2002
+++ Zope/lib/python/Products/ZCTextIndex/HTMLSplitter.py Fri Jan 3 01:33:18 2003
@@ -21,14 +21,15 @@
__implements__ = ISplitter
- def process(self, text, wordpat=r"\w+"):
+ def process(self, text, wordpat=r"(?L)\w+"):
splat = []
for t in text:
splat += self._split(t, wordpat)
return splat
def processGlob(self, text):
- return self.process(text, r"\w+[\w*?]*") # see Lexicon.globToWordIds()
+ # see Lexicon.globToWordIds()
+ return self.process(text, r"(?L)\w+[\w*?]*")
def _split(self, text, wordpat):
text = text.lower()
=== Zope/lib/python/Products/ZCTextIndex/Lexicon.py 1.17 => 1.17.8.1 ===
--- Zope/lib/python/Products/ZCTextIndex/Lexicon.py:1.17 Thu May 23 11:05:34 2002
+++ Zope/lib/python/Products/ZCTextIndex/Lexicon.py Fri Jan 3 01:33:18 2003
@@ -156,8 +156,8 @@
class Splitter:
import re
- rx = re.compile(r"\w+")
- rxGlob = re.compile(r"\w+[\w*?]*") # See globToWordIds() above
+ rx = re.compile(r"(?L)\w+")
+ rxGlob = re.compile(r"(?L)\w+[\w*?]*") # See globToWordIds() above
def process(self, lst):
result = []
=== Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py 1.34.4.2 => 1.34.4.3 ===
--- Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py:1.34.4.2 Sun Nov 24 19:14:59 2002
+++ Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py Fri Jan 3 01:33:18 2003
@@ -94,7 +94,7 @@
else:
self._index_factory = index_factory
- self.index = self._index_factory(self.getLexicon())
+ self.index = self._index_factory(aq_base(self.getLexicon()))
## Private Methods ##
@@ -124,7 +124,7 @@
lexicon = getattr(aq_parent(aq_inner(self)), self.lexicon_id)
if not ILexicon.isImplementedBy(lexicon):
raise TypeError('Object "%s" is not a ZCTextIndex Lexicon'
- % lexicon.getId())
+ % repr(lexicon))
self._v_lexicon = lexicon
return lexicon