summaryrefslogtreecommitdiff
path: root/CHANGES.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-08-30 12:18:57 -0400
committerChris McDonough <chrism@plope.com>2013-08-30 12:19:10 -0400
commitc5ed5491e8a6d736bedba45b2cb944799f36a5e4 (patch)
tree931b32f598cf4685dbf8b173743401a2182b0dd1 /CHANGES.txt
parent97ed56d766298ee042305ff8712df5f1fc3fbe3a (diff)
downloadpyramid-c5ed5491e8a6d736bedba45b2cb944799f36a5e4.tar.gz
pyramid-c5ed5491e8a6d736bedba45b2cb944799f36a5e4.tar.bz2
pyramid-c5ed5491e8a6d736bedba45b2cb944799f36a5e4.zip
add HTTPSuccessful base class, allowing HTTPOk to be caught independently; closes #986
Diffstat (limited to 'CHANGES.txt')
-rw-r--r--CHANGES.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 334785424..b3c4e6a60 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -4,6 +4,13 @@ Next Release
Features
--------
+- A new http exception subclass named ``pyramid.httpexceptions.HTTPSuccessful``
+ was added. You can use this class as the ``context`` of an exception
+ view to catch all 200-series "exceptions" (e.g. "raise HTTPOk"). This
+ also allows you to catch *only* the ``HTTPOk`` exception itself; previously
+ this was impossible because a number of other exceptions
+ (such as ``HTTPNoContent``) inherited from ``HTTPOk``, but now they do not.
+
- You can now generate "hybrid" urldispatch/traversal URLs more easily
by using the new ``route_name``, ``route_kw`` and ``route_remainder_name``
arguments to ``request.resource_url`` and ``request.resource_path``. See
@@ -923,6 +930,14 @@ Backwards Incompatibilities
finished callbacks are executed. This is in support of the
``request.invoke_subrequest`` feature.
+- The 200-series exception responses named ``HTTPCreated``, ``HTTPAccepted``,
+ ``HTTPNonAuthoritativeInformation``, ``HTTPNoContent``, ``HTTPResetContent``,
+ and ``HTTPPartialContent`` in ``pyramid.httpexceptions`` no longer inherit
+ from ``HTTPOk``. Instead they inherit from a new base class named
+ ``HTTPSuccessful``. This will have no effect on you unless you've registered
+ an exception view for ``HTTPOk`` and expect that exception view to
+ catch all the aforementioned exceptions.
+
Documentation
-------------