<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt;I have a table with a list of values. To list my values in a dtml<br>&gt;method i write &lt;dtml-var value&gt; inside the appropriate dtml-in tag.
<br>&gt;In the next column I have the &lt;dtml-var sequence-number&gt;<br>&gt;<br>&gt;I want to accumulate my values so the result will be:<br>&gt;<br>&gt;Is it possible to make this accumulated value as a<br>&gt;&lt;dtml-var expr=&quot;[something like sum of values where seq-num &lt;=seq-num]&quot;&gt;
<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>