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

2018-01-28 Thread Bert JW Regeer
During exception handling pyramid_tm will have already rolled back, and the database session is no longer valid for use. Any access will cause sqlalchemy to raise. Please verify you are using the latest version of Pyramid and pyramid_tm, and then read this note:

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

2018-01-28 Thread Bert JW Regeer
Hey, This is a known issue with the way we add new attributes and functions to the request object. pyramid.util.Request does not exist. pyramid.request.Request is still the underlying object. This has been fixed in https://github.com/Pylons/pyramid/pull/3129. Bert > On Jan 27, 2018, at