<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">>I have a table with a list of values. To list my values in a dtml<br>>method i write <dtml-var value> inside the appropriate dtml-in tag.
<br>>In the next column I have the <dtml-var sequence-number><br>><br>>I want to accumulate my values so the result will be:<br>><br>>Is it possible to make this accumulated value as a<br>><dtml-var expr="[something like sum of values where seq-num <=seq-num]">
<br><br>Write a simple python script. Input=original list of values.<br>Output=list of (value, accum). Iterate the result with dtml-in as before.<br><br><br>Gabriel Genellina<br>Softlab SRL</blockquote><div><br><br>Can you pls explain it a bit more in detail - afraid I'm still a bit new to Zope and dtml/python. What would the Script (Python) look like?
<br><br>Thanks for your help! :-)<br></div><br></div><br>