On Fri, Feb 13, 2009 at 4:10 PM, jorge.vargas <[email protected]> wrote:
> 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?

another benefit of going with 1 is that we can get rid of a lot of
dependencies, according to pip

Downloading/unpacking PEAK-Rules>=0.5a1.dev-r2555 (from TurboJson->TurboGears2)
Downloading/unpacking prioritized-methods>=0.2 (from TurboJson->TurboGears2)
Downloading/unpacking BytecodeAssembler>=0.3.dev-r2459 (from
PEAK-Rules>=0.5a1.dev-r2555->TurboJson->TurboGears2)
Downloading/unpacking DecoratorTools>=1.7dev-r2450 (from
PEAK-Rules>=0.5a1.dev-r2555->TurboJson->TurboGears2)
Downloading/unpacking AddOns>=0.6 (from
PEAK-Rules>=0.5a1.dev-r2555->TurboJson->TurboGears2)
Downloading/unpacking Extremes>=1.1 (from
PEAK-Rules>=0.5a1.dev-r2555->TurboJson->TurboGears2)
Downloading/unpacking SymbolType>=1.0 (from
BytecodeAssembler>=0.3.dev-r2459->PEAK-Rules>=0.5a1.dev-

--~--~---------~--~----~------------~-------~--~----~
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