diff options
| author | Chris McDonough <chrism@plope.com> | 2011-06-14 04:31:26 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-06-14 04:31:26 -0400 |
| commit | 53d11e7793317eee0f756b1e77b853ae7e1e6726 (patch) | |
| tree | 977589720594f73e3b4ad2e341aebe0e8a2da84c /CHANGES.txt | |
| parent | 92099080859976ce78882de477ddc2c01bc880b2 (diff) | |
| download | pyramid-53d11e7793317eee0f756b1e77b853ae7e1e6726.tar.gz pyramid-53d11e7793317eee0f756b1e77b853ae7e1e6726.tar.bz2 pyramid-53d11e7793317eee0f756b1e77b853ae7e1e6726.zip | |
- Move default app_iter generation logic into __call__ for
exception responses.
- Add note about why we've created a shadow exception hierarchy
parallel to that of webob.exc.
Diffstat (limited to 'CHANGES.txt')
| -rw-r--r-- | CHANGES.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index ea4bedc7e..a2976d1a2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -320,6 +320,25 @@ Behavior Changes ``webob.response.Response`` (in order to directly implement the ``pyramid.interfaces.IResponse`` interface). +- The "exception response" objects importable from ``pyramid.httpexceptions`` + (e.g. ``HTTPNotFound``) are no longer just import aliases for classes that + actually live in ``webob.exc``. Instead, we've defined our own exception + classes within the module that mirror and emulate the ``webob.exc`` + exception response objects almost entirely. We do this in order to a) + allow the exception responses to subclass ``pyramid.response.Response``, + which speeds up response generation slightly due to the way the Pyramid + router works, b) allows us to provide alternate __call__ logic which also + speeds up response generation, c) allows the exception classes to provide + for the proper value of ``self.RequestClass`` (pyramid.request.Request), d) + allows us freedom from having to think about backwards compatibility code + present in ``webob.exc`` having to do with Python 2.4, which we no longer + support, e) We change the behavior of two classes (HTTPNotFound and + HTTPForbidden) in the module so that they can be used internally for + notfound and forbidden exceptions, f) allows us to influence the docstrings + of the exception classes to provide Pyramid-specific documentation, and g) + allows us to silence a stupid deprecation warning under Python 2.6 when the + response objects are used as exceptions (related to ``self.message``). + Backwards Incompatibilities --------------------------- |
