[Zope-dev] ZCatalog bug in 2.3.1b2
Andy Dawkins
andyd@nipltd.com
Tue, 20 Mar 2001 16:02:23 +0000
I posted this before but didn't get a reply.
Has any one seen this bug, Or do they know a fix?
ATM this is stopping me using 2.3.1b2 which is a bad thing(tm)
-----------
Zope Errorr
Zope has encountered an error while publishing this resource.
Error Type: TypeError
Error Value: len() of unsized object
With this traceback:
Traceback (innermost last):
File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 223, in publish_module
File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 187, in publish
File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Zope/__init__.py,
line 221, in zpublisher_exception_hook
(Object: Traversable)
File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 171, in publish
File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/mapply.py,
line
160, in mapply
(Object: executeSearch)
File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: executeSearch)
File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/OFS/DTMLMethod.py,
line 189, in __call__
(Object: executeSearch)
File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
(Object: executeSearch)
File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_Let.py,
line 146, in render
(Object: Results="Catalog(REQUEST=REQUEST)")
File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_Util.py,
line 334, in eval
(Object: Catalog(REQUEST=REQUEST))
(Info: REQUEST)
File <string>, line 0, in ?
File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/ZCatalog.py,
line 530, in searchResults
(Object: Traversable)
File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/Catalog.py,
line 654, in searchResults
File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/Catalog.py,
line 591, in _indexedSearch
TypeError: (see above)
--------
Here is the line which calls the search:
sr = self.searchResults({'Type' : type, 'sort_on':'lowercase_title_'})
fyi. type = 'TypeTest'
The indexes are as follows:
Status = Text Index
Type = Field Index
Identifier = Field Index
lowercase_title_ = Field Index
parent_identifiers_ = Keyword Index
The meta types are like this:
Title
id
identifier
There are only 13 records in the catalog.
And there are some results to be returned.
Cheers
-Andy