[Zope] Passing lists in a get request (ZCatalog Search) Continued...

Darin Lee LEEDM@state.mi.us
Mon, 04 Dec 2000 16:19:42 -0500


Zopistas, 

Everyone, Thanks for the help so far. My searchable form and indexes are working great, except for one small problem. Whenever I pass in a string to search on a text-index, along with the sort_on and/or sort_order parameters I keep getting the following error:

Error Type: TypeError
Error Value: loop over non-sequence

Traceback (innermost last):
  File C:\PROGRA~1\DEQ_UP~1\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File C:\PROGRA~1\DEQ_UP~1\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\PROGRA~1\DEQ_UP~1\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook
    (Object: Traversable)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\PROGRA~1\DEQ_UP~1\lib\python\ZPublisher\mapply.py, line 160, in mapply
    (Object: search)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\ZPublisher\Publish.py, line 112, in call_object
    (Object: search)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\OFS\DTMLMethod.py, line 172, in __call__
    (Object: search)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__
    (Object: search)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\DocumentTemplate\DT_In.py, line 473, in renderwb
    (Object: Catalog)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\Products\ZCatalog\ZCatalog.py, line 455, in searchResults
    (Object: Traversable)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\Products\ZCatalog\Catalog.py, line 602, in searchResults
  File C:\PROGRA~1\DEQ_UP~1\lib\python\Products\ZCatalog\Catalog.py, line 555, in _indexedSearch
TypeError: (see above)

So, on a hunch - I tried the query directly on the Catalog method itself (not my home-brew code). 
I typed in "http://myserver/Catalog/report?main_references=Air&sort_on=category&sort_order=reverse"


Same problem - I f I try to query against a zCatalog text-index, and also pass the sort_on or sort_order parameters - I get the error.

Is this a Zope bug?

I'd appreciate any information anyone can pass on - I'm so close to getting this thing working...

Thanks in advance,
-Darin Lee