[Zope] DTML newbie question on summation

Peter Sabaini sabaini@niil.at
Fri, 2 Jun 2000 15:54:12 +0200 (CEST)


try 

  <dtml-let total="_.int(SUNDAY) + _.int( ...

_.int() method tells zope you want (integer) numbers.

hth peter.


On Fri, 2 Jun 2000, Coleman, Bryan wrote:

:I can't seem to add variables using let. I just get a concatination of the
:integers. I am using ...
:
:<dtml-let total="SUNDAY + MONDAY + TUESDAY + WEDNESDAY + THURSDAY + FRIDAY +
:SATURDAY">
:
:The days represent hours but are stored as integers in the database.
:
:- Bryan Patrick Coleman
:  Questcon Technologies
:  (336)273-2428
:  bcoleman@questcon.com
:
:
:_______________________________________________
: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 )
:

-- 

_________________________________________________
peter sabaini, mailto: sabaini@niil.at
-------------------------------------------------