[Zope-CMF] Portal catalog searchs fail
Itamar Shtull-Trauring
itamar@maximam.com
Mon, 06 May 2002 17:01:47 +0300
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