[ZPT] tal:repeat problem

Nguyen, Joe Joe.Nguyen at coair.com
Thu May 27 18:30:47 EDT 2004


Hi list, 

 

I've trying to figure out a problem that seems pretty trivial but I couldn't
figure it out.

I've been racking my brains over this.  Here's my problem:

 

Let's say I have a list that I pass to a zpt.  I'll call this  nameList,
with lets say there are 1000+ names on the list.

I want to display this within a table with only 12 columns. This is where my
problem lies.  I'm sure there's an easy way but I couldn't quit figure it
out!  I have something like this but it doesn't work at all, just to give
you an idea

 

 

 

<tr tal:repeat="x python:range(0,1000)">

    <td align="center" tal:repeat="y range(0,12)"

                       tal:content="python:nameList[x]">

    </td>

</tr>

 

Also, is there a function that can tell if it's at the end of the list?

Thanks in advance!

 

Joe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zpt/attachments/20040527/7890e7b0/attachment.html


More information about the ZPT mailing list