[Zope-CMF] Portal catalog searchs fail
Andreas Jung
Andreas Jung" <andreas@zope.com
Mon, 6 May 2002 11:07:15 -0400
----- Original Message -----
From: "Itamar Shtull-Trauring" <itamar@maximam.com>
To: <zope-cmf@zope.org>
Sent: Monday, May 06, 2002 10:01
Subject: [Zope-CMF] Portal catalog searchs fail
> I'm doing the following as Anonymous and it fails with a traceback - it
> works fine as Manager(!!!). There are 0 items catalogged at the moment,
but
> same error when some are. CMF 1.2, Zope 2.4. The issue is obviously with
the
> changes CatalogTool does to queries, but I can't see how no one ever found
> this bug before.
>
> Search:
> return container.portal_catalog.searchResults(
> meta_type='CMF Event', review_state='published')
>
>
> Traceback:
> ...
> File
> /Services/www/zope2.4/lib/python/Products/PythonScripts/PythonScript.py,
> line 363, in _exec
> (Object: getEvents)
> (Info: ({'script': <PythonScript instance at 91c4838>,
'context':
> <CMFSite instance at 8b5b578>, 'container': <CMFSite instance at
> 8b5b578>, 'traverse_subpath': []}, (), {}, None))
> File Script (Python), line 1, in getEvents
> (Object: guarded_getattr)
> File /Services/www/zope2.4/lib/python/Products/CMFCore/CatalogTool.py,
> line 193, in searchResults
> (Object: portal_catalog)
> File /Services/www/zope2.4/lib/python/Products/ZCatalog/ZCatalog.py,
line
> 653, in searchResults
> (Object: portal_catalog)
> File /Services/www/zope2.4/lib/python/Products/ZCatalog/Catalog.py,
line
> 650, in searchResults
> File /Services/www/zope2.4/lib/python/Products/ZCatalog/Catalog.py,
line
> 538, in _indexedSearch
> File
> /Services/www/zope2.4/lib/python/Products/PluginIndexes/common/UnIndex.py,
> line 402, in _apply_index
> (Object: expires)
> AttributeError: find
>
This looks as the contains a wrong value for a 'range' parameter. Please
check the value returned record.get('range',None) in
UnIndex.py/_apply_index().
-aj