diff options
| author | Michael Merickel <michael@merickel.org> | 2015-11-01 19:28:00 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2015-11-01 19:28:20 -0600 |
| commit | cfd8ccfce67b89fab9095ac41ac3ca85f9c0da0e (patch) | |
| tree | db6955e652b895047cac93739775303554cdfd08 | |
| parent | 508d0a2edceee11101a9739be8cca2a0b0438649 (diff) | |
| download | pyramid-cfd8ccfce67b89fab9095ac41ac3ca85f9c0da0e.tar.gz pyramid-cfd8ccfce67b89fab9095ac41ac3ca85f9c0da0e.tar.bz2 pyramid-cfd8ccfce67b89fab9095ac41ac3ca85f9c0da0e.zip | |
fix add_route_predicate docs to reference add_route
| -rw-r--r-- | pyramid/config/routes.py | 6 |
1 files 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. |
