[Zope] dtml-let help

Pete Kazmier pete@kazmier.com
Fri, 26 May 2000 12:13:59 -0400


I'm trying to keep a cumulative count while sequencing over a list via
the dmtl-in tag.  I tried this but it didn't work, Zope complained
about the syntax.  Could someone help me or point me in the right
direction, I search the archives but couldn't find anything relevant?
Thanks!

<dtml-let totalActive="0"
          totalUnknown="0"
          totalPorts="0">

<dtml-in "objectValues(['Gateway'])">
  <dtml-with sequence-item>
    <dtml-call "CallStatus()">
    <dtml-var "totalActive=totalActive+active">
    <dtml-var "totalUnknown=totalUnknown + unknown">
    <dtml-var "totalPorts=totalPorts + ports">  
  </dtml-with>
</dtml-in>

<dtml-var totalActive>
<dtml-var totalUnknown>
<dtml-var totalPorts>
</dtml-let>

-- 
Peter Kazmier                                 http://www.kazmier.com
PGP Fingerprint   4FE7 8DA3 D0B5 9CAA 69DC  7243 1855 BC2E 4B43 5654