[Zope] DTML parsing Python- tuples and lists
Daryl Tester
dt@picknowl.com.au
Fri, 07 Apr 2000 08:30:12 +0930
Andrew Diller wrote:
> Thanks, that's a start, but I'm still not seeing how I can tear into
> say, for example a tuple of lists of lists.
Something like the following?
<dtml-let results="([1,2,['a','b']], [2,3,['b','c']], [3,4,['c','d']])">
<dtml-in results>
Indexed[0]: <dtml-var "_['sequence-item'][0]"><BR>
Indexed[1]: <dtml-var "_['sequence-item'][1]"><BR>
<dtml-in "_['sequence-item'][2]">
<dtml-var sequence-item><BR>
</dtml-in>
</dtml-in>
</dtml-let>
Regards,
Daryl Tester