summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-06-08 01:00:38 +0400
committerGitHub <noreply@github.com>2018-06-08 01:00:38 +0400
commitaaed8d498ae255c27109e0b40736ca93ed7a4093 (patch)
tree0dd6cc83be6283c2b281e9010421029495d72fd8
parent77caaff93f3c7dc8d43d6375b06b05e2be6cf7d3 (diff)
parent7b6eb3523b9ac35a7cb0b4e717e00fd52067aaa5 (diff)
downloadpyramid-aaed8d498ae255c27109e0b40736ca93ed7a4093.tar.gz
pyramid-aaed8d498ae255c27109e0b40736ca93ed7a4093.tar.bz2
pyramid-aaed8d498ae255c27109e0b40736ca93ed7a4093.zip
Merge pull request #3299 from mmerickel/drop-permission-add-route
remove the permission arg from add_route
-rw-r--r--CHANGES.rst15
-rw-r--r--pyramid/config/routes.py1
2 files changed, 10 insertions, 6 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 334a9b62f..de7ad0f8a 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -21,8 +21,8 @@ Features
instead of ``pyramid.util.Request``.
See https://github.com/Pylons/pyramid/pull/3129
-- In ``cherrypy_server_runner``, prefer imports from the ``cheroot`` package over the legacy
- imports from `cherrypy.wsgiserver`.
+- In ``cherrypy_server_runner``, prefer imports from the ``cheroot`` package
+ over the legacy imports from `cherrypy.wsgiserver`.
See https://github.com/Pylons/pyramid/pull/3235
- Add a context manager ``route_prefix_context`` to the
@@ -33,9 +33,9 @@ Features
Bug Fixes
---------
-- Set appropriate ``code`` and ``title`` attributes on the ``HTTPClientError`` and
- ``HTTPServerError`` exception classes. This prevents inadvertently returning a 520
- error code.
+- Set appropriate ``code`` and ``title`` attributes on the ``HTTPClientError``
+ and ``HTTPServerError`` exception classes. This prevents inadvertently
+ returning a 520 error code.
See https://github.com/Pylons/pyramid/pull/3280
- Replace ``webob.acceptparse.MIMEAccept`` from WebOb with
@@ -54,6 +54,11 @@ Backward Incompatibilities
depending on it directly within your project.
See https://github.com/Pylons/pyramid/pull/3140
+- Remove the ``permission`` argument from
+ ``pyramid.config.Configurator.add_route``. This was an argument left over
+ from a feature removed in Pyramid 1.5 and has had no effect since then.
+ See https://github.com/Pylons/pyramid/pull/3299
+
Documentation Changes
---------------------
diff --git a/pyramid/config/routes.py b/pyramid/config/routes.py
index 598af300f..b00886e5d 100644
--- a/pyramid/config/routes.py
+++ b/pyramid/config/routes.py
@@ -24,7 +24,6 @@ class RoutesConfiguratorMixin(object):
def add_route(self,
name,
pattern=None,
- permission=None,
factory=None,
for_=None,
header=None,