[Cheetahtemplate-discuss] Problem with set and lists
Brought to you by:
rtyler,
tavis_rudd
From: Luiz C. G. <lui...@gm...> - 2006-02-11 18:12:25
|
Hi, I'm trying to do the following: #set $status_count[$status] =3D {'count': 0} and getting: NameError: global name 'status_count' is not defined But when I do: $status_count[$status] #stop #set $status_count[$status] =3D {'count': 34} Everything works fine, i.e. the page outputs {'count': 0} So the variable *is* assignaled to the template and I guess the problem is with the "set" statement, which I use several times with "normal" variables, as strings and ints, and works. What is the problem here, and what can I do? Thanks, Luiz Carlos Geron jabber: lui...@ja... |