[Zope] dtml-let help
Luis Cortes
lcortes@pollak.com
Fri, 26 May 2000 11:11:14 -0600
I tried the same thing, it doesn't work (or at least, I haven't found a way to
make it work).
What I do now is use REQUEST.set('totalActive',0 ) and
REQUEST.get('totalActive') when I need the value. The other alternative is to
write it in a python method.
Regards,
Luis.
On Fri, 26 May 2000, you wrote:
>> 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
>>
>> _______________________________________________
>> Zope maillist - Zope@zope.org
>> http://lists.zope.org/mailman/listinfo/zope
>> ** No cross posts or HTML encoding! **
>> (Related lists -
>> http://lists.zope.org/mailman/listinfo/zope-announce
>> http://lists.zope.org/mailman/listinfo/zope-dev )
--
======================================================
Luis Cortes
Pollak EPD (915) 621-6113
======================================================