The current function for jsonifying SQLObjects doesn't jsonify
InheritableSQLObjects properly, this is, doesn't get attributes from
parent classes and has a spuriours 'childName' column.
I've sent a patch long ago for so_do_dict to convert inheritable
sqlobjects properly, does anyone see a problem in \me adding this 3
lines to turbojson.jsonify for it to work properly?
@jsonify.when("isinstance(obj, InheritableSQLObject)")
def jsonify_inheriable_so_object(obj):
return so_to_dict(obj)
(2.3ized of course)
This would require turbojson to depend on TG (for so_to_dict) which
could be a problem if anyone is using it in another framework, if
this is a problem a I could just copy 10 lines from
turbogears.database to jsonify.
Alberto
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---