Thanks, Christoph. This makes sense. I noticed that if you additional
expose() decorators on the controller method then it is possible to
return lists and strings even if the request type is JSON.

Carl

On Jun 8, 1:37 am, Christoph Zwerschke <[email protected]> wrote:
> Carl schrieb:
>
> > I can't return a non-dictionary object (e.g. a list of dictionaries or
> > a string) from a controller method with expose('json'). If I do
> > directory simplejson.dumps() it works.
>
> I think this ishttp://trac.turbogears.org/ticket/2034
>
> -- Christoph
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to