Kevin Dangoor wrote:
On 10/26/05, Leandro Lucarella <[EMAIL PROTECTED]> wrote:

What about SelectResult? Maybe this could be done to jsonify it:

def selectResult_to_list(select_result):
       obj_list = []
       for obj in select_result:
               obj_list.append(obj_to_dict(obj))
       return obj_list


If memory serves, Ian's code didn't do SelectResults, but it would be
nice if it did...

Probably simply detecting the presence of a __iter__ method would be best, which would cover SelectResults and any other iterable.

--
Ian Bicking  /  [EMAIL PROTECTED]  /  http://blog.ianbicking.org

Reply via email to