From 3467d67092d34d870cee3129e8d6737cfe53c0a5 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 6 Dec 2012 22:56:48 -0500 Subject: note custom_predicates deprecation --- pyramid/config/views.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pyramid/config/views.py b/pyramid/config/views.py index 2a93ffbec..e4217f2f3 100644 --- a/pyramid/config/views.py +++ b/pyramid/config/views.py @@ -1024,14 +1024,16 @@ class ViewsConfiguratorMixin(object): custom_predicates - This value should be a sequence of references to custom - predicate callables. Use custom predicates when no set of - predefined predicates do what you need. Custom predicates - can be combined with predefined predicates as necessary. - Each custom predicate callable should accept two arguments: - ``context`` and ``request`` and should return either - ``True`` or ``False`` after doing arbitrary evaluation of - the context and/or the request. + This value should be a sequence of references to custom predicate + callables. Use custom predicates when no set of predefined + predicates do what you need. Custom predicates can be combined with + predefined predicates as necessary. Each custom predicate callable + should accept two arguments: ``context`` and ``request`` and should + return either ``True`` or ``False`` after doing arbitrary evaluation + of the context and/or the request. The ``predicates`` argument to + this method and the ability to register third-party view predicates + via :meth:`pyramid.config.Configurator.add_view_predicate` obsoletes + this argument, but it is kept around for backwards compatibility. predicates -- cgit v1.2.3