summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-12-06 22:56:48 -0500
committerChris McDonough <chrism@plope.com>2012-12-06 22:56:48 -0500
commit3467d67092d34d870cee3129e8d6737cfe53c0a5 (patch)
tree113c33a41434f7435292a096bd5bfdd22e3ca989
parentd4ce0a13c7ce29b473b563536a967687cb9d8748 (diff)
downloadpyramid-3467d67092d34d870cee3129e8d6737cfe53c0a5.tar.gz
pyramid-3467d67092d34d870cee3129e8d6737cfe53c0a5.tar.bz2
pyramid-3467d67092d34d870cee3129e8d6737cfe53c0a5.zip
note custom_predicates deprecation
-rw-r--r--pyramid/config/views.py18
1 files 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