From cfd8ccfce67b89fab9095ac41ac3ca85f9c0da0e Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Sun, 1 Nov 2015 19:28:00 -0600 Subject: fix add_route_predicate docs to reference add_route --- pyramid/config/routes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyramid/config/routes.py b/pyramid/config/routes.py index 24f38a4fd..90d4d47d2 100644 --- a/pyramid/config/routes.py +++ b/pyramid/config/routes.py @@ -268,7 +268,7 @@ class RoutesConfiguratorMixin(object): Pass a key/value pair here to use a third-party predicate registered via - :meth:`pyramid.config.Configurator.add_view_predicate`. More than + :meth:`pyramid.config.Configurator.add_route_predicate`. More than one key/value pair can be used at the same time. See :ref:`view_and_route_predicates` for more information about third-party predicates. @@ -421,14 +421,14 @@ class RoutesConfiguratorMixin(object): @action_method def add_route_predicate(self, name, factory, weighs_more_than=None, - weighs_less_than=None): + weighs_less_than=None): """ Adds a route predicate factory. The view predicate can later be named as a keyword argument to :meth:`pyramid.config.Configurator.add_route`. ``name`` should be the name of the predicate. It must be a valid Python identifier (it will be used as a keyword argument to - ``add_view``). + ``add_route``). ``factory`` should be a :term:`predicate factory` or :term:`dotted Python name` which refers to a predicate factory. -- cgit v1.2.3