[pylons-discuss] Re: What’s the type of `request` in an exception view?

2018-01-27 Thread jens . troeger
After some more tinkering: the `request` parameter is of type *pyramid.util.Request* which is derived from *pyramid.request.Request*, so using isinstance() is safe. As per this example

[pylons-discuss] What’s the type of `request` in an exception view?

2018-01-27 Thread jens . troeger
Hello, I’ve got the following exception view: @view_config( context=Exception, permission=NO_PERMISSION_REQUIRED, ) def handle_exception(exc, request): """Last resort view function.""" … I had assumed that the `request` parameter here is the same instance as the `request`

[pylons-discuss] Confused with parameter `request` in exception views.

2018-01-27 Thread jens . troeger
Hello, Following the examples of how to implement an exception view (see here or here