avoid loading all subchildren in check for nested children

This commit is contained in:
Helmut Merz 2016-07-17 10:13:21 +02:00
parent 2720b0444c
commit 3b11a72a81

View file

@ -183,14 +183,17 @@
tal:attributes="value related/uidToken" />
</td>
</tr>
<tr tal:define="children python:list(related.unique(related.children()));
<tal:nested condition="list_nested">
<tr tal:define="children python:
list(related.unique(related.children()));
resources python:list(related.resources())"
tal:condition="python:list_nested and (children or resources)">
tal:condition="python:children or resources">
<td tal:condition="item/showCheckboxes|nothing" />
<td colspan="5">
<metal:list use-macro="item/template/macros/list_nested" />
</td>
</tr>
</tal:nested>
</tal:item>
</tal:items>
</tbody>