18 Oct
2001
18 Oct
'01
2:17 p.m.
Hi, One can write : <dtml-unless "_.has_key('lg')"> *** <dtml-var lg missing='****' > </dtml-unless> I would like to do something like : <dtml-unless "_.has_key('lg')"> <dtml-var "_['lg']='fr'"> </dtml-unless> (to set-up a default value, so "lg" is always defined in the rest of the DTMLMethod ) I was believing that "_" was a python dictionnary why does it say syntax error at : <dtml-var "_['lg']='fr'"> any idea ? -- _/ _/ _/_/_/ _/_/ Michel.Vayssade@UTC.fr Service Informatique _/ _/ _/ _/ T:33/0-3.44.23.49.24 Universite de Technologie _/ _/ _/ _/ F:33/0-3.44.23.46.77 BP 20.529 60205 Compiegne _/_/ _/ _/_/ _ mv@utc.fr __/www.utc.fr/~vayssade____ France