[gen] Performance improvements.

This commit is contained in:
Gaetan Delannay 2014-09-23 12:47:44 +02:00
parent 2f30730d3b
commit 701eae1b19
5 changed files with 21 additions and 26 deletions

View file

@ -70,8 +70,8 @@ class AbstractWrapper(object):
</tr>
</table>
<!-- Object phases and pages -->
<x var="phases=zobj.getAppyPhases()"
if="phases and zobj.mayNavigate()">:phases[0].pxAllPhases</x>''')
<x if="zobj.mayNavigate()" var2="phases=zobj.getAppyPhases()">
<x if="phases">:phases[0].pxAllPhases</x></x>''')
# The template PX for all pages.
pxTemplate = Px('''