[Zope] Query Keyword Index unexpected behavior

Chris Withers chris at simplistix.co.uk
Wed Mar 23 09:04:21 EST 2005


Yuri wrote:
> this is an "already discussed issue" :)
> 
> http://www.dzug.org/mailinglisten/zope-org-zope/archive/2003/2003-12/1070709691550/index_html 

That thread seems pretty confused :-S

>> The ZCatalog treats an empty *string* in a special way to support[...]
> 
> "AND"[...]

Not really to support AND, it treats it in a special way to support html 
search forms that send empty strings when a field is left empty...

> I've solved it in /PluginIndexes/common/util.py. When the param is a 
> record,
> around line 95, I've added:
> 
> if keys == ['']: keys = None
> 
> Is it correct? 

Almost certainly not. Please raise an issue in the collector so we can 
tackle this properly...

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list