Thanks guys. Chris, I think I would have found that if there had been a link to it from the docs page on customizing the 403 view with hooks. Would be great to have a mention of that there I think.
thanks Iain On Tue, Mar 8, 2011 at 8:24 PM, Rob Miller <r...@kalistra.com> wrote: > On 03/08/2011 07:36 PM, 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. >> > > I'm not 100% sure I understand the code path you're describing, but if it's > from within custom renderer code that you want to be able to tweak the > response, support for this is built in: > > > http://docs.pylonsproject.org/projects/pyramid/1.0/narr/renderers.html#response-request-attrs > > -r > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-devel" group. > To post to this group, send email to pylons-devel@googlegroups.com. > To unsubscribe from this group, send email to > pylons-devel+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pylons-devel?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.