27 Dec
2000
27 Dec
'00
9:35 a.m.
Michael Bernstein wrote:
Hi everybody,
I've been messing with some external methods and I've got one that returns a tuple. The tuple consists of a list and a few strings.
How do I access the tuple elements from DTML?
Ok, I've been messing with it some more and I should have tried simply iterating over the tuple elements before: <dtml-in "External_Method(REQUEST)"> <dtml-var sequence-item><br> </dtml-in> Which (of course) displays the list as an single item along with each of the strings: ['list item 1', 'list item 2', 'list item 3'] String 1 String 2 String 3 Now, how do I iterate over the list in DTML? Michael Bernstein.