[Zope-Checkins] CVS: Zope2 - GlobbingLexicon.py:1.8
chrism@serenade.digicool.com
chrism@serenade.digicool.com
Tue, 27 Mar 2001 18:49:14 -0500
Update of /cvs-repository/Zope2/lib/python/SearchIndex
In directory serenade.digicool.com:/home/chrism/sandboxes/TrunkBranch/lib/python/SearchIndex
Modified Files:
GlobbingLexicon.py
Log Message:
Merge into trunk for collector 2098.
--- Updated File GlobbingLexicon.py in package Zope2 --
--- GlobbingLexicon.py 2001/03/15 13:16:24 1.7
+++ GlobbingLexicon.py 2001/03/27 23:49:13 1.8
@@ -277,8 +277,9 @@
else:
words.append(w)
- return words
-
+ # if words is empty, return something that will make textindex's
+ # __getitem__ return an empty result list
+ return words or ['']
def Splitter(self, astring, words=None):
""" wrap the splitter """