diff options
| author | Chris McDonough <chrism@plope.com> | 2013-09-08 21:12:10 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-09-08 21:12:10 -0400 |
| commit | fdf30b3bb6f47d93d2f255a09e75be0c33d54789 (patch) | |
| tree | b67de9c251bdd232e03fbb9bb0ac44a2c76a91d3 /docs | |
| parent | 780bbf9998fd805df55499ef4a78f41cbf99c7de (diff) | |
| download | pyramid-fdf30b3bb6f47d93d2f255a09e75be0c33d54789.tar.gz pyramid-fdf30b3bb6f47d93d2f255a09e75be0c33d54789.tar.bz2 pyramid-fdf30b3bb6f47d93d2f255a09e75be0c33d54789.zip | |
- Removed the ability to pass the following arguments to
``pyramid.config.Configurator.add_route``: `view``, ``view_context``.
``view_for``, ``view_permission``, ``view_renderer``, and ``view_attr``.
Using these arguments had been deprecated since Pyramid 1.1. Instead of
passing view-related arguments to ``add_route``, use a separate call to
``pyramid.config.Configurator.add_view`` to associate a view with a route
using its ``route_name`` argument. Note that this impacts the
``pyramid.config.Configurator.add_static_view`` function too, because it
delegates to ``add_route``.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/urldispatch.rst | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index 62eb89348..61849c3c0 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -399,13 +399,6 @@ process. Examples of route predicate arguments are ``pattern``, ``xhr``, and Other arguments are ``name`` and ``factory``. These arguments represent neither predicates nor view configuration information. -.. warning:: - - Some arguments are view-configuration related arguments, such as - ``view_renderer``. These only have an effect when the route configuration - names a ``view`` and these arguments have been deprecated as of - :app:`Pyramid` 1.1. - .. index:: single: route matching |
