Creating and adding to Dictionary using dtml?
25 Jul
2001
25 Jul
'01
2:39 p.m.
Hi, If I have created a dictionary with... <dtml-call "REQUEST.set('the_list',{})"> How do I add a 'name':value pair to this using dtml? Thanks Richard
25 Jul
25 Jul
3:11 p.m.
New subject: [Zope] Creating and adding to Dictionary using dtml?
On Wed, 25 Jul 2001, Richard Ettema wrote:
Hi,
If I have created a dictionary with... <dtml-call "REQUEST.set('the_list',{})">
How do I add a 'name':value pair to this using dtml?
As you said, create the dict with: <dtml-call "REQUEST.set('the_list', {})"> or, nicer, use the dtml-set patch: <dtml-set the_list="{}"> in either case, update the dict with <dtml-call "the_list.update( { 'newkey':'newval' } )"> hth, -- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
9021
Age (days ago)
9021
Last active (days ago)
1 comments
2 participants
participants (2)
-
Joel Burton -
Richard Ettema