[Zope] KeyError in ZCatalog search

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


Ignore my last message, I just saw the directory name in the stack trace.

I'd like to help, but this is a pretty complex query.  I'd like to be able
to narrow this down to a single query.  Assmuming resd is the problem, can
you try the search:

Catalog(authorname=begriff)

(whatever 'begriff' is when the concated searches happen) and tell me the
results.


----- 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 )
>