[Zope] dictionaries in DTML

Kevin Dangoor kid@kendermedia.com
Thu, 4 May 2000 13:42:17 -0400


You'll need to use the "update" method. <dtml-call "D.update({'K' :
value})">

Kevin

----- Original Message -----
From: "Dragomir Denev" <D.Denev@CNsys.bg>
To: <zope@zope.org>
Sent: Thursday, May 04, 2000 5:31 PM
Subject: [Zope] (no subject)


> Hi everybody.
>
> Here is a problem:
> I have a dictionary variable named D and a key (in D) named K.
> I know I can do the following: <dtml-var "D['K']"> and so on, but
> how can I change the value of D['K'] in a dtml tag ( something like
<dtml-call "D['K']=value">)?