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...
(BTW, this can be reduced to:

list(select_result)

)

Ian's jsonify uses generic functions, so it's easy to add rules for
serializing all kinds of things.

Kevin

Reply via email to