summaryrefslogtreecommitdiff
path: root/CHANGES.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-08-30 13:38:10 -0400
committerChris McDonough <chrism@plope.com>2013-08-30 13:38:10 -0400
commit17dbdbfc87e0d13d9db6d6b94885ad1402607516 (patch)
tree2652a0e8125930928d35d263ef8bf1273c5ee113 /CHANGES.txt
parentc0d5a5caf165d2dc3dcae08b687a8b4a7a93201c (diff)
parent23f1ff130c55b3c33ededb85480fc57b633d739d (diff)
downloadpyramid-17dbdbfc87e0d13d9db6d6b94885ad1402607516.tar.gz
pyramid-17dbdbfc87e0d13d9db6d6b94885ad1402607516.tar.bz2
pyramid-17dbdbfc87e0d13d9db6d6b94885ad1402607516.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'CHANGES.txt')
-rw-r--r--CHANGES.txt39
1 files changed, 38 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 93349abe6..b3c4e6a60 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -4,6 +4,19 @@ 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
+ the new section of the "Combining Traversal and URL Dispatch" documentation
+ chapter entitled "Hybrid URL Generation".
+
- It is now possible to escape double braces in Pyramid scaffolds (unescaped,
these represent replacement values). You can use ``\{\{a\}\}`` to
represent a "bare" ``{{a}}``. See
@@ -151,11 +164,17 @@ Features
- The ``pyramid.config.Configurator.add_route`` method now supports being
called with an external URL as pattern. See
- https://github.com/Pylons/pyramid/issues/611 for more information.
+ https://github.com/Pylons/pyramid/issues/611 and the documentation section
+ in the "URL Dispatch" chapter entitled "External Routes" for more information.
Bug Fixes
---------
+- It was not possible to use ``pyramid.httpexceptions.HTTPException`` as
+ the ``context`` of an exception view as very general catchall for
+ http-related exceptions when you wanted that exception view to override the
+ default exception view. See https://github.com/Pylons/pyramid/issues/985
+
- When the ``pyramid.reload_templates`` setting was true, and a Chameleon
template was reloaded, and the renderer specification named a macro
(e.g. ``foo#macroname.pt``), renderings of the template after the template
@@ -232,6 +251,16 @@ Backwards Incompatibilities
respectively using the machinery described in the "Internationalization"
chapter of the documentation.
+- If you send an ``X-Vhm-Root`` header with a value that ends with a slash (or
+ any number of slashes), the trailing slash(es) will be removed before a URL
+ is generated when you use use ``request.resource_url`` or
+ ``request.resource_path``. Previously the virtual root path would not have
+ trailing slashes stripped, which would influence URL generation.
+
+- The ``pyramid.interfaces.IResourceURL`` interface has now grown two new
+ attributes: ``virtual_path_tuple`` and ``physical_path_tuple``. These should
+ be the tuple form of the resource's path (physical and virtual).
+
1.4 (2012-12-18)
================
@@ -901,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
-------------