--On Donnerstag, 14. April 2005 12:20 Uhr -0400 Jim Abramson <[EMAIL PROTECTED]> wrote:
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.
<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>
This is a well-known behaviour and considered a feature for historical reasons (don't
ask why...). Try to add the 'mapping' attribute inside dtml-in.
Description: PGP signature
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )