Thanks,<br>Here is what I'm trying to do:<br>Let's say:<br>contents of myscript():<br>mydict = {'key1': 'value1', 'key2': 'value2'}<br>mydict2 = {'key1': 'value3', 'key2': 'value4'}<br>finalList = [mydict, mydict2]<br>return finalList<br><br>When I do this in a dtml-method:<br>&lt;dtml-in "myscript()"&gt;<br>&nbsp;&nbsp; &lt;dtml-var key1&gt; &lt;br/&gt;<br>&lt;/dtml-in&gt;<br>This will not return me this:<br>value1<br>value2<br>It gives me a key error.<br>However if I loop through a recordset, it produces proper output.<br>I'd like to merge a record object and a dictionary object so I can access them like I showed you here with dtml-in - so I can loop over both of them.<br><br>Is there a way?<br><br>Thanks in advance guys!<br><br><b><i>Andreas Jung &lt;lists@zopyx.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <br><br>--On 19. Juni 2006 09:16:23 -0700 Alric Aneron
 <aluminum3458@yahoo.com> <br>wrote:<br><br>&gt; Hello,<br>&gt; I have a dictionary object and a result set object (that was returned<br>&gt; from a ZSQL method).  Is there any way I can merge them into one variable<br>&gt; and use them in a dtml-in statement?<br>&gt;<br><br>result sets have a dictionaries() method and dict have an update() <br>method..everything else is one-liner-Python magic and depends on your <br>usecase.<br><br>-aj<br><br><br>-- <br>ZOPYX Ltd. &amp; Co. KG - Charlottenstr. 37/1 - 72070 T�bingen - Germany<br>Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376<br>E-Publishing, Python, Zope &amp; Plone development, Consulting<br></aluminum3458@yahoo.com></blockquote><br><p>
                <hr size=1>Yahoo! Sports Fantasy Football ’06 - Go with the leader. 
<a href="http://us.rd.yahoo.com/evt=33539/*http://football.fantasysports.yahoo.com?ovchn=YAH&ovcpn=Integration&ovcrn=Mail+footer&ovrfd=YAH&ovtac=AD">Start your league today!</a>