summaryrefslogtreecommitdiffstats
path: root/tabellio/searchform/docsearch.pt
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@0d.be>2011-11-16 16:31:48 (GMT)
committerFrédéric Péters <fpeters@0d.be>2011-11-16 16:31:48 (GMT)
commitb3b920777e6036a2de9f43a97c0792ecba5e3a4a (patch)
treed5262792464360ccd96d1cf15eb75ac9e38618f1 /tabellio/searchform/docsearch.pt
parentb198c057a11422affa8b11e59235d28dd590e1b4 (diff)
downloadtabellio.searchform-b3b920777e6036a2de9f43a97c0792ecba5e3a4a.zip
tabellio.searchform-b3b920777e6036a2de9f43a97c0792ecba5e3a4a.tar.gz
tabellio.searchform-b3b920777e6036a2de9f43a97c0792ecba5e3a4a.tar.bz2
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.
Diffstat (limited to 'tabellio/searchform/docsearch.pt')
-rw-r--r--tabellio/searchform/docsearch.pt6
1 files changed, 3 insertions, 3 deletions
diff --git a/tabellio/searchform/docsearch.pt b/tabellio/searchform/docsearch.pt
index b9a3cdb..3ddda07 100644
--- a/tabellio/searchform/docsearch.pt
+++ b/tabellio/searchform/docsearch.pt
@@ -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"/>