diff options
| author | Chris McDonough <chrism@plope.com> | 2013-07-28 00:21:09 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-07-28 00:21:09 -0400 |
| commit | aeee0e7db14f0d68ffece459345f49d07233890f (patch) | |
| tree | 77bd176ab6510671e2aae34190115824b92f9a78 /CHANGES.txt | |
| parent | e7638bfd959811bb85f681ff2ad8d43d716018ad (diff) | |
| parent | a6291243051b1977832b0b9a45c27eb68d7ba867 (diff) | |
| download | pyramid-aeee0e7db14f0d68ffece459345f49d07233890f.tar.gz pyramid-aeee0e7db14f0d68ffece459345f49d07233890f.tar.bz2 pyramid-aeee0e7db14f0d68ffece459345f49d07233890f.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'CHANGES.txt')
| -rw-r--r-- | CHANGES.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 0031fc635..c100f7fa6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,30 @@ Next Release Features -------- +- Add the ability to invert the result of any view, route, or subscriber + predicate using the ``not_`` class. For example:: + + from pyramid.config import not_ + + @view_config(route_name='myroute', request_method=not_('POST')) + def myview(request): ... + + The above example will ensure that the view is called if the request method + is not POST (at least if no other view is more specific). + + The :class:`pyramid.config.not_` class can be used against any value that is + a predicate value passed in any of these contexts: + + - ``pyramid.config.Configurator.add_view`` + + - ``pyramid.config.Configurator.add_route`` + + - ``pyramid.config.Configurator.add_subscriber`` + + - ``pyramid.view.view_config`` + + - ``pyramid.events.subscriber`` + - ``scripts/prequest.py``: add support for submitting ``PUT`` and ``PATCH`` requests. See https://github.com/Pylons/pyramid/pull/1033. add support for submitting ``OPTIONS`` and ``PROPFIND`` requests, and allow users to specify |
