summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2016-09-28 21:00:02 -0500
committerMichael Merickel <michael@merickel.org>2016-09-28 21:00:02 -0500
commit4ce8d4f2894819f17385e835b0b329fbc793fac6 (patch)
tree014980957ff1d9a122cb805437c7a477b4b874c9
parent4939e35e878e0ac155f1bf9f33721c9b3ce2d423 (diff)
downloadpyramid-4ce8d4f2894819f17385e835b0b329fbc793fac6.tar.gz
pyramid-4ce8d4f2894819f17385e835b0b329fbc793fac6.tar.bz2
pyramid-4ce8d4f2894819f17385e835b0b329fbc793fac6.zip
add changelog for #2660
-rw-r--r--CHANGES.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 85e71aef3..8f971b2ee 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -35,6 +35,23 @@ Features
and pop threadlocals off of the stack to prevent memory leaks.
See https://github.com/Pylons/pyramid/pull/2760
+- Added ``pyramid.config.Configurator.add_exception_view`` and the
+ ``pyramid.view.exception_view_config`` decorator. It is now possible using
+ these methods or via the new ``exception_only=True`` option to ``add_view``
+ to add a view which will only be matched when handling an exception.
+ Previously any exception views were also registered for a traversal
+ context that inherited from the exception class which prevented any
+ exception-only optimizations.
+ See https://github.com/Pylons/pyramid/pull/2660
+
+- Added the ``exception_only`` boolean to
+ ``pyramid.interfaces.IViewDeriverInfo`` which can be used by view derivers
+ to determine if they are wrapping a view which only handles exceptions.
+ This means that it is no longer necessary to perform request-time checks
+ for ``request.exception`` to determine if the view is handling an exception
+ - the pipeline can be optimized at config-time.
+ See https://github.com/Pylons/pyramid/pull/2660
+
Bug Fixes
---------