Jeff Watkins, el miƩrcoles 26 de octubre a las 07:45 me escribiste:
> 
> Since revision 89 or so, Ian's jsonify code has been included. You  
> can use code like the following:
> 
> from turbogears.jsonify import *
> 
>     @turbogears.expose( format="json" )
>     def method( self ):
>         return dict( stuff=jsonify(MyObject.get(1)) )
> 
> I'm planning to integrate this code in the regular JSON output  
> process (probably this weekend) so the jsonify call above wouldn't be  
> necessary.

That would be great, this way you don't have to make a method for exposing
JSON and another for exposing a template (I think one of the most amazing
things about TG is this abstraction).

-- 
 LUCA - Leandro Lucarella - JID: luca(en)lugmen.org.ar - Debian GNU/Linux
.------------------------------------------------------------------------,
 \  GPG: 5F5A8D05 // F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05 /
  '--------------------------------------------------------------------'
El techo de mi cuarto lleno de cometas

Reply via email to