--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>



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.


Attachment: pgpWvbx1WIC5Q.pgp
Description: PGP signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to