[Zope] converting Dictionary to Result

Andreas Jung lists at zopyx.com
Mon Jun 19 12:25:58 EDT 2006



--On 19. Juni 2006 09:16:23 -0700 Alric Aneron <aluminum3458 at yahoo.com> 
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 dictionaries() method and dict have an update() 
method..everything else is one-liner-Python magic and depends on your 
usecase.

-aj


-- 
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info at zopyx.com - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060619/94b9d7dd/attachment.bin


More information about the Zope mailing list