[Zope] KeyError in ZCatalog search

Oliver Frommel oliver@aec.at
Thu, 26 Apr 2001 00:26:50 +0200 (CEST)


Hi,

while trying to search for a certain term I get the following error from Zope.
All (most?) other searches work without problems, though.

Error Type: KeyError
Error Value: 35

stack trace:

...

 File /opt2/cvs/Zope-2.3.2b1-src/lib/python/DocumentTemplate/DT_Let.py, line 146, in render
    (Object: resa="Catalog(text_obj=begriff)"
           resb="Catalog(abstract_obj=begriff)"
           resc="Catalog(title=begriff)"
          resd="Catalog(authorname=begriff)"
          rese="Catalog(thema=begriff)"
           res="resa[:_.len(resa)] + resb[:_.len(resb)] + resc[:_.len(resc)] + resd[:_.len(resd)] + rese[:_.len(rese)]")
  File /opt2/cvs/Zope-2.3.2b1-src/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval
    (Object: resa[:_.len(resa)] + resb[:_.len(resb)] + resc[:_.len(resc)] + resd[:_.len(resd)] + rese[:_.len(rese)])
    (Info: resd)
  File <string>, line 0, in ?
  File /opt2/cvs/Zope-2.3.2b1-src/lib/python/DocumentTemplate/DT_Util.py, line 172, in careful_getslice
  File /opt2/cvs/Zope-2.3.2b1-src/lib/python/Products/ZCatalog/Lazy.py, line 141, in __getslice__
  File /opt2/cvs/Zope-2.3.2b1-src/lib/python/Products/ZCatalog/Lazy.py, line 223, in __getitem__
  File /opt2/cvs/Zope-2.3.2b1-src/lib/python/Products/ZCatalog/Catalog.py, line 227, in __getitem__
KeyError: (see above)


as you can see, I am using the usual OR-search idiom, concatenating subsearches.
Unfortunately I have no clue what the problem might be.
Could anyone provide a clue on how to debug this?

thanks for your help
--Oliver