[pylons-discuss] Re: how to return a http exception in json ?

2014-03-31 Thread Chip Kellam
You could also just set the type of error in the status_int and return the vars and use the json renderer. request.response.status_int = HTTPUnprocessableEntity.code On Monday, March 31, 2014 5:11:20 AM UTC-4, Chung WONG wrote: For example, there is a view returns a http exception to a

Re: Is there a default setting for http_cache?

2013-06-11 Thread Chip Kellam
You can do this as a class-based view default, but I don't know any other way. eg: @view_defaults(http_cache=0) class SomeViewClass(): ... On Tuesday, June 11, 2013 9:39:09 PM UTC-4, Christoph Zwerschke wrote: Is it possible to set the http_cache parameter globally for all views in