[Zope] Keys from dictionaries

ender kthangavelu@earthlink.net
Sun, 11 Mar 2001 06:33:31 -0800


On Sunday 11 March 2001 09:34, Axel Missbach wrote:

>>I want to get the keys from the SQL-Method. I thought it has to look
>>like this:
>>
>><dtml-in Query>
>> <dtml-var sequence-key>
>> <dtml-var sequence-item>
>></dtml-in>

zsql don't return dictionaries they return Result objects.
defined in lib/python/Shared/DC/ZRDB/Result.py

some methods that might help you out
data_dictionaries
names
dictionaries

usage
<dtml-let r=Query>
<dtml-in "r.dictionaries()">
<dtml-var sequence-key> <dtml-var sequence-item> 
</dtml-in>
</dtml-let>


cheers

kapil