tags:

views:

104

answers:

1
<div tal:define="number python: 1">
<tal:block repeat="item s_items">
    <div tal:define="number python: number + 1">     
         <div tal:content="python: number">none</div>
     </div> 
</tal:block>
</div>

Hi, always show 2. but I would like to show 2 3 4 5 ... How to do? Thanks

A: 

sorry for the delay, you could do something like.

<div tal:define="global number python: 1">
<tal:block repeat="item s_items">
<div tal:define="global number python: number + 1">     
     <div tal:content="python: number">none</div>
 </div> 
</tal:block>
</div>
shaun