[Zope-Checkins] CVS: Zope2  - GlobbingLexicon.py:1.4.46.4
   
    chrism@serenade.digicool.com
     
    chrism@serenade.digicool.com
       
    Tue, 27 Mar 2001 18:42:38 -0500
    
    
  
Update of /cvs-repository/Zope2/lib/python/SearchIndex
In directory serenade.digicool.com:/home/chrism/sandboxes/2_3Branch/lib/python/SearchIndex
Modified Files:
      Tag: zope-2_3-branch
	GlobbingLexicon.py 
Log Message:
Fix collector 2098 (query_hook returns empty set).
--- Updated File GlobbingLexicon.py in package Zope2 --
--- GlobbingLexicon.py	2001/03/15 13:10:33	1.4.46.3
+++ GlobbingLexicon.py	2001/03/27 23:42:36	1.4.46.4
@@ -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 """