[Zope] round and len in DTML
   
    Dieter Maurer
     
    dieter@handshake.de
       
    Wed, 10 Apr 2002 20:48:46 +0200
    
    
  
dorian santner writes:
 > <dtml-let percentage="duration/(planAffort)">
 > 
 > works fine with a given duration and planAffort (yes i checked planAffort<>0),
 > 
 > why cant i set
 > <dtml-let percentage="round((duration/(planAffort)),2)">
 > 
 > or
 > <dtml-let mylength="len(anyVariable)">
Name clashes are a big problem with DTML.
To alleviate it a bit, build in functions are not inside the
DTML namespace but are attributes of it. You access them as
     "_.len", for example.
The set of exposed builtin functions is severely limited, though...
Dieter