[Zope] Dynamic Sum

Dieter Maurer dieter@handshake.de
Tue, 17 Sep 2002 20:48:01 +0200


Michael Fox writes:
 > I have a dtml-in which lists both quantity and cost of items in my table.
 > 
 > I am generating the total for each item row like so -
 > 
 > <dtml-var expr="cost * qty" fmt="dollars-and-cents-with-commas">
 > 
 > What would be the practical approach to calculating the sum of all totals for each item here?
The best way is to do it in a Python script.

If you really think you need to stay in DTML, you use "REQUEST.set".
Search the mailing list archives for tons of examples...


Dieter