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