From 26d2d87bc2865a431b5eb30552c3eac4108b3a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Tue, 7 Jan 2020 14:33:31 -0500 Subject: rewrite docs for custom predicates --- docs/narr/hooks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/narr/hooks.rst') diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index 4a594a8c9..fbb845447 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -1564,7 +1564,7 @@ event type. self.val = val def text(self): - return 'path_startswith = %s' % (self.val,) + return 'request_path_startswith = %s' % (self.val,) phash = text -- cgit v1.2.3 From d480c0fe653da0eb265c9ad7edfafc817848caa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Sat, 11 Jan 2020 17:39:59 -0500 Subject: change section title --- docs/narr/hooks.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/narr/hooks.rst') diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index fbb845447..b6b103eb3 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -1416,10 +1416,10 @@ The ``ptweens`` command-line utility can be used to report the current implicit and explicit tween chains used by an application. See :ref:`displaying_tweens`. -.. _registering_thirdparty_predicates: +.. _registering_curstom_predicates: -Adding a Third Party View, Route, or Subscriber Predicate ---------------------------------------------------------- +Adding a Custom View, Route, or Subscriber Predicate +---------------------------------------------------- .. versionadded:: 1.4 -- cgit v1.2.3 From ad65078469770bc698b7b4a0a5634b3895aab971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Sat, 11 Jan 2020 18:21:56 -0500 Subject: replace "third-party" with "custom" --- docs/narr/hooks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/narr/hooks.rst') diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index b6b103eb3..4632c2c0a 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -1446,7 +1446,7 @@ Likewise, a similar predicate can be used as a *route* predicate: config.add_route('name', '/foo', request_method='POST') Many other built-in predicates exists (``request_param``, and others). You can -add third-party predicates to the list of available predicates by using one of +add custom predicates to the list of available predicates by using one of :meth:`pyramid.config.Configurator.add_view_predicate` or :meth:`pyramid.config.Configurator.add_route_predicate`. The former adds a view predicate, the latter a route predicate. -- cgit v1.2.3 From 517140bac948e9a8bb60ad4c0c80bf45cd2741f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Sat, 11 Jan 2020 18:27:43 -0500 Subject: fix typo --- docs/narr/hooks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/narr/hooks.rst') diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index 4632c2c0a..c19d26236 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -1416,7 +1416,7 @@ The ``ptweens`` command-line utility can be used to report the current implicit and explicit tween chains used by an application. See :ref:`displaying_tweens`. -.. _registering_curstom_predicates: +.. _registering_custom_predicates: Adding a Custom View, Route, or Subscriber Predicate ---------------------------------------------------- -- cgit v1.2.3