[Zope] KeyError in ZCatalog search

Chris McDonough chrism@digicool.com
Wed, 25 Apr 2001 18:32:40 -0400


Which version of Zope are you using?

----- Original Message -----
From: "Oliver Frommel" <oliver@aec.at>
To: <zope@zope.org>
Sent: Wednesday, April 25, 2001 6:26 PM
Subject: [Zope] KeyError in ZCatalog search


> 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
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>