There was a discussion recently about this on this list but also on IRC etc. I have two sollutions, one was to make a custom redirect response that then I could modify.
The other is to modify Pylons so that instead of re-raiseing the HTTPException in WSGIController.__call__ so that the httpexceptions middleware catches it, instead create a response out of the exception and then call __after__ with that reponse. The patch for the second sollution is here : http://pylonshq.com/project/pylonshq/ticket/201 Just look at the (positive) changes my controller had, after applying #201, here's the diff of my controller http://paste.lisp.org/display/37002. The patch in #201 could be also made a lot shorter if Paste implements a get_response() call in the HTTPException class. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---