Hello,

Today while working on the updated dependencies ticket I found out something.

Currently we are using the buffet legacy plugin for json, you may know
it as TurboJson,

TurboJson, was ones used by TW/TGWidgets and other parts of TG1 to
apply generic rules to transform into json some objects, as you can
see from 
http://trac.turbogears.org/browser/projects/TurboJson/trunk/turbojson/jsonify.py
it used to support SO, SA and other small types in a very magical yet
useful way. Also note TJ uses simplejson as it's rendering engine.

Fast forward to the present, if you want to return json you will most
likely use a dict, and TJ will just kick in and transform your custom
classes into valid json.

So the questions are,

1- should we create a "render_json" function in tg.render.py (read:
build a "new style render")
if yes what it should do,
a- simply delegate to simplejson
b- implement the generic functions to display custom types?
2- should we bring TurboJson back into TG2 codebase?
3- ???

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to