misc fixes to page template

This commit is contained in:
Frédéric Péters 2011-11-20 16:09:36 +01:00
parent 14c9b33cb9
commit 1be4d784b9
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
<div tal:replace="structure view/document_pfb_search_form"/>
<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">
@ -38,7 +38,7 @@
<div id="results">
<ul>
<tal:entry tal:repeat="item search_batch">
<li tal:define="oddrow repeat/doc/odd; object python: doc.getObject()" tal:attributes="class python: oddrow and 'odd' or 'even'"><div>
<li tal:define="oddrow repeat/item/odd; object python: item.getObject()" tal:attributes="class python: oddrow and 'odd' or 'even'"><div>
<h4><a href="#" tal:attributes="href item/getURL" tal:content="python: object.doctype">Véronique Salvi</a> / <span class="session" tal:content="python: object.session"/></h4>
<p class="intitule" tal:content="item/Title"/>
<p class="authors" tal:content="python: object.get_authors_as_string()" tal:condition="python: object.authors" />