On Tue, 2011-03-08 at 19:36 -0800, Iain Duncan wrote:
> I personally like using zcml to supply my renderer to my views so I
> can change templates from the zcml file. The only issue I'm having is
> that I don't know how I can set the response status when doing that.
> If my view is returning a dict, and the renderer is turning that into
> the reponse, is there some hook or way to influence the response?
> Specifically, I have made a custom forbidden view, and want it to
> still have status 403 for easy testing.

request.response_status = ....

See also
http://docs.pylonsproject.org/projects/pyramid/1.0/narr/renderers.html#varying-attributes-of-rendered-responses

- C


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" 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/pylons-devel?hl=en.

Reply via email to