Note, that will only work for actions that render a view. Another option to 
consider might be WSGI 
middleware<http://web2py.com/books/default/chapter/29/04#WSGI>
.

Anthony

On Friday, January 11, 2013 10:40:24 AM UTC-5, rochacbruno wrote:
>
>
> I think that for doing this you should modify response.render to a 
> specialized function.
>
>
>
> def my_response_render(*args, **kwargs):
>      # here you have to implement what you need
>      # and then do the normal response.render
>
>
> in models/db.py
>
>
> response.render = my_response_render
>
>
> In that way you can intercept things before the response get rendered.
>
>
> ** maybe it can be included as a signal in response.render itself.
>

-- 



Reply via email to