Re: [Zope] converting Dictionary to Result

2006-06-21 Thread Dieter Maurer
Alric Aneron wrote at 2006-6-19 09:35 -0700: ... contents of myscript(): mydict = {'key1': 'value1', 'key2': 'value2'} mydict2 = {'key1': 'value3', 'key2': 'value4'} finalList = [mydict, mydict2] return finalList When I do this in a dtml-method: dtml-in myscript() dtml-var key1 br/ /dtml-in

Re: [Zope] converting Dictionary to Result

2006-06-19 Thread Andreas Jung
--On 19. Juni 2006 09:16:23 -0700 Alric Aneron [EMAIL PROTECTED] wrote: Hello, I have a dictionary object and a result set object (that was returned from a ZSQL method). Is there any way I can merge them into one variable and use them in a dtml-in statement? result sets have a

Re: [Zope] converting Dictionary to Result

2006-06-19 Thread Alric Aneron
Thanks,Here is what I'm trying to do:Let's say:contents of myscript():mydict = {'key1': 'value1', 'key2': 'value2'}mydict2 = {'key1': 'value3', 'key2': 'value4'}finalList = [mydict, mydict2]return finalListWhen I do this in a dtml-method:dtml-in "myscript()" dtml-var key1 br//dtml-inThis will not

Re: [Zope] converting Dictionary to Result

2006-06-19 Thread Jonathan
]) )return rList then, in your DTML method: dtml-in myscript dtml-var sequence-key, dtml-var sequence-itembr/dtml-in Jonathan - Original Message - From: Alric Aneron To: Andreas Jung ; zope@zope.org Sent: Monday, June 19, 2006 12:35 PM Subject: Re: [Zope] converting

Re: [Zope] converting Dictionary to Result

2006-06-19 Thread Tino Wildenhain
Alric Aneron wrote: Hello, I have a dictionary object and a result set object (that was returned from a ZSQL method). Is there any way I can merge them into one variable and use them in a dtml-in statement? You should know which one should update which one. So assuming your dictionary has