summaryrefslogtreecommitdiff
path: root/CHANGES.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-08-07 00:33:53 -0400
committerChris McDonough <chrism@plope.com>2012-08-07 00:33:53 -0400
commitc3a9a10324b991a42040760a04c5fb3fc5c9c864 (patch)
tree11787501669cee587f8b0a7c33024fb62d397e81 /CHANGES.txt
parent92b64cca2994774987cbce88cef89e9f71366185 (diff)
parent735abf49f936cedc845907516a3922cdffa83665 (diff)
downloadpyramid-c3a9a10324b991a42040760a04c5fb3fc5c9c864.tar.gz
pyramid-c3a9a10324b991a42040760a04c5fb3fc5c9c864.tar.bz2
pyramid-c3a9a10324b991a42040760a04c5fb3fc5c9c864.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'CHANGES.txt')
-rw-r--r--CHANGES.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 94553955c..e092b1545 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -26,6 +26,27 @@ Bug Fixes
Features
--------
+- Third-party custom view and route predicates can now be added for use by
+ view authors via ``pyramid.config.Configurator.add_view_predicate`` and
+ ``pyramid.config.Configurator.add_route_predicate``. So, for example,
+ doing this::
+
+ config.add_view_predicate('abc', my.package.ABCPredicate)
+
+ Might allow a view author to do this in an application that configured that
+ predicate::
+
+ @view_config(abc=1)
+
+ See "Adding A Third Party View or Route Predicate" in the Hooks chapter for
+ more information.
+
+ Note that changes made to support the above feature now means that only
+ actions registered using the same "order" can conflict with one another.
+ It used to be the case that actions registered at different orders could
+ potentially conflict, but to my knowledge nothing ever depended on this
+ behavior (it was a bit silly).
+
- Custom objects can be made easily JSON-serializable in Pyramid by defining
a ``__json__`` method on the object's class. This method should return
values natively serializable by ``json.dumps`` (such as ints, lists,