At Tuesday 25/7/2006 19:38, you wrote:

I have a table with a list of values. To list my values in a dtml method i write <dtml-var value> inside the appropriate dtml-in tag. In the next column I have the <dtml-var sequence-number>


I want to accumulate my values so the result will be:

Is it possible to make this accumulated value as a
<dtml-var expr="[something like sum of values where seq-num <=seq-num]">

Write a simple python script. Input=original list of values. Output=list of (value, accum). Iterate the result with dtml-in as before.


Gabriel Genellina
Softlab SRL

        
        
                
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! http://www.yahoo.com.ar/respuestas

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

Reply via email to