[Zope] Z SQL row to dictionary

Kevin Carlson khcarlso at bellsouth.net
Sat Aug 9 19:34:36 EDT 2003


This one is pretty straightforward.  You can turn a ZSQL result set into 
a list of dictionaries simply by calling the dictionaries() method on 
the result set.

For example:

results = ZSQLMethod.getSomethingFromDB()
dicts = results.dictionaries()

Hope that helps,

Kevin

Jerry Westrick wrote:

>Hello...
>
>anybody know how to convert the row returned from
>an Z SQL into a dictionary?
>
>Jerry
>
>
>_______________________________________________
>Zope maillist  -  Zope at zope.org
>http://mail.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists - 
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>  
>




More information about the Zope mailing list