[Zope-dev] ZCatalog Error in 2.4.0b2
Chris Withers
chrisw@nipltd.com
Fri, 20 Jul 2001 16:15:08 +0100
Hi,
I'm doing something simple:
return catalog.searchResults(sort_on='dateofpublication')
...and getting something horrible:
Error Type: TypeError
Error Value: unsubscriptable object
File
/usr/local/zope/2.4.0b2_base/lib/python/Products/PythonScripts/PythonScript.py,
line 362, in _exec
(Object: latest_articles)
(Info: ({'script': <PythonScript instance at 8cb0048>, 'context':
<Folder instance at 85996a8>, 'container': <Folder instance at
85996a8>, 'traverse_subpath': []}, (), {}, None))
File Script (Python), line 4, in latest_articles
(Object: guarded_getitem)
File /usr/local/zope/2.4.0b1_base/lib/python/Products/ZCatalog/Lazy.py, line
94, in __repr__
File /usr/local/zope/2.4.0b1_base/lib/python/Products/ZCatalog/Lazy.py, line
223, in __getitem__
TypeError: (see above)
What's going on?
cheers,
Chris