[Zope] tuples of length 2 in DTML

Jim Abramson jabramson at wgen.net
Thu Apr 14 12:20:30 EDT 2005


Tuples of length 2 just don't seem to work in DTML.  I don't know what
it is, certainly never seen any documented explanation before.  The
simple test below explains itself .

Can anyone explain why the results are what they are?  I'd go to the
collector if it didn't seem like such a glaringly obvious quirk.  I
figure there must be some sensible reason why this happens, but my
manual is missing that page.


<pre>

<dtml-let tt="[('a',),('b','c',),('d','e','f')]">
tt: <dtml-var tt>

<dtml-in tt>
tt[<dtml-var sequence-index>]: <dtml-var sequence-item>
</dtml-in>

</dtml-let>

</pre>



Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20050414/1e071c5f/attachment.htm


More information about the Zope mailing list