On Aug 7, 2010, at 12:28 PM, Ionuț Arțăriși wrote: > Hello, > > I would like to be able to abandon a request however deeply nested within a > function and return a json object. > > pylons.controllers.util.abort is the equivalent of what I would like, but it > only returns HTML, even if the request was json.
I never used that function, but I'd simply create my own decorator that exposes a passed function as json, and catches a defined exception to render whatever json you want. Diez -- 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.

