[Zope] Getting SQL record names in python script?
azbok@yahoo.com
azbok@yahoo.com
Mon, 12 Nov 2001 23:57:11 -0000
I call a ZSQL method in python and successfully retrieve the results I
want. Then I want to get a list of the field names.
I try
MyRec = context.GetRecord()
print MyRec[0].keys()
I get
Error Type: AttributeError
Error Value: keys
I can cycle through the values no problem. I thought the records
returned were each a dictionary. Is keys one of those functions that
is restricted?
How would I get field names?
Thank you very much