convert resultsets to actual list, to work around some plone breakage

It happens a catalog result announced a slightly (223 != 220) different number
of results that what was actually in it, making it be considered as a reduced
set by the Batch code, making it non functional. This is probably related to
changes in https://dev.plone.org/ticket/11733, or nearby.
This commit is contained in:
Frédéric Péters 2011-11-16 17:31:48 +01:00
parent b198c057a1
commit b3b920777e
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@
<div tal:define="search_results view/document_search_results;
search_batch python:Batch(search_results or [], b_size, int(b_start), orphan=1);"
search_batch python:Batch(list(search_results or []), b_size, int(b_start), orphan=1);"
tal:condition="python: search_results is not None">
<div id="resultsbox">
@ -59,7 +59,7 @@
<div tal:replace="structure view/dossier_search_form"/>
<div tal:define="search_results view/dossier_search_results;
search_batch python:Batch(search_results or [], b_size, int(b_start), orphan=1);"
search_batch python:Batch(list(search_results or []), b_size, int(b_start), orphan=1);"
tal:condition="python: search_results is not None">
<input name="fieldset.current" type="hidden" value="#fieldset-dossiers"/>
@ -92,7 +92,7 @@
<div tal:replace="structure view/question_search_form"/>
<div tal:define="search_results view/question_search_results;
search_batch python:Batch(search_results or [], b_size, int(b_start), orphan=1);"
search_batch python:Batch(list(search_results or []), b_size, int(b_start), orphan=1);"
tal:condition="python: search_results is not None">
<input name="fieldset.current" type="hidden" value="#fieldset-questions"/>