Skip to content

Commit

Permalink
remove references to add_route view-related configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Jul 12, 2011
1 parent 7278cf9 commit 321e346
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
9 changes: 5 additions & 4 deletions docs/narr/urldispatch.rst
Expand Up @@ -394,13 +394,14 @@ the associated route to be considered a match during the route matching
process. Examples of route predicate arguments are ``pattern``, ``xhr``, and
``request_method``.
Other arguments are view configuration related arguments. These only have an
effect when the route configuration names a ``view``. These arguments have
been deprecated as of :app:`Pyramid` 1.1 (see :ref:`add_route_view_config`).
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.
.. _custom_route_predicates:
Custom Route Predicates
Expand Down
19 changes: 7 additions & 12 deletions pyramid/config.py
Expand Up @@ -1801,22 +1801,20 @@ def add_route(self,
should only be used to support older code bases which depend upon
them.* Use a separate call to
:meth:`pyramid.config.Configurator.add_view` to associate a view
with a route. See :ref:`add_route_view_config` for more info.
with a route using the ``route_name`` argument.
view
.. warning:: Deprecated as of :app:`Pyramid` 1.1; see
:ref:`add_route_view_config`.
.. warning:: Deprecated as of :app:`Pyramid` 1.1.
A Python object or :term:`dotted Python name` to the same
object that will be used as a view callable when this route
matches. e.g. ``mypackage.views.my_view``.
view_context
.. warning:: Deprecated as of :app:`Pyramid` 1.1; see
:ref:`add_route_view_config`.
.. warning:: Deprecated as of :app:`Pyramid` 1.1.
A class or an :term:`interface` or :term:`dotted Python
name` to the same object which the :term:`context` of the
view should match for the view named by the route to be
Expand All @@ -1831,8 +1829,7 @@ def add_route(self,
view_permission
.. warning:: Deprecated as of :app:`Pyramid` 1.1; see
:ref:`add_route_view_config`.
.. warning:: Deprecated as of :app:`Pyramid` 1.1.
The permission name required to invoke the view associated
with this route. e.g. ``edit``. (see
Expand All @@ -1846,8 +1843,7 @@ def add_route(self,
view_renderer
.. warning:: Deprecated as of :app:`Pyramid` 1.1; see
:ref:`add_route_view_config`.
.. warning:: Deprecated as of :app:`Pyramid` 1.1.
This is either a single string term (e.g. ``json``) or a
string implying a path or :term:`asset specification`
Expand All @@ -1871,8 +1867,7 @@ def add_route(self,
view_attr
.. warning:: Deprecated as of :app:`Pyramid` 1.1; see
:ref:`add_route_view_config`.
.. warning:: Deprecated as of :app:`Pyramid` 1.1.
The view machinery defaults to using the ``__call__`` method
of the view callable (or the function itself, if the view
Expand Down

0 comments on commit 321e346

Please sign in to comment.