summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.rst5
-rw-r--r--pyramid/config/routes.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 4cb8ba44b..24122eb72 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -25,6 +25,11 @@ Features
imports from `cherrypy.wsgiserver`.
See https://github.com/Pylons/pyramid/pull/3235
+- Add a context manager ``route_prefix_context`` to the
+ ``pyramid.config.Configurator`` to allow for convenient setting of the
+ route_prefix for ``include`` and ``add_route`` calls inside the context.
+ See https://github.com/Pylons/pyramid/pull/3279
+
Bug Fixes
---------
diff --git a/pyramid/config/routes.py b/pyramid/config/routes.py
index a83b424b6..598af300f 100644
--- a/pyramid/config/routes.py
+++ b/pyramid/config/routes.py
@@ -488,7 +488,7 @@ class RoutesConfiguratorMixin(object):
A string suitable to be used as a route prefix, or ``None``.
- .. versionadded:: 1.9.10
+ .. versionadded:: 1.10
"""
original_route_prefix = self.route_prefix