summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wu <webmaster@leapoahead.com>2017-11-15 14:43:54 -0800
committerGitHub <noreply@github.com>2017-11-15 14:43:54 -0800
commitf32dac8e3a33b463a40abc447a7f9e318e38183a (patch)
treefba72266e2aa77f43084f64eef0ac6423a1891a1
parentcc6a6ed60260b0391aa38f372b26311d58edf0d6 (diff)
downloadpyramid-f32dac8e3a33b463a40abc447a7f9e318e38183a.tar.gz
pyramid-f32dac8e3a33b463a40abc447a7f9e318e38183a.tar.bz2
pyramid-f32dac8e3a33b463a40abc447a7f9e318e38183a.zip
Clarify property descriptor in add_request_method
Fix #3202 - Doc change.
-rw-r--r--pyramid/config/factories.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pyramid/config/factories.py b/pyramid/config/factories.py
index c8633cc47..e84e5d7c2 100644
--- a/pyramid/config/factories.py
+++ b/pyramid/config/factories.py
@@ -144,9 +144,10 @@ class FactoriesConfiguratorMixin(object):
When adding a property to the request, ``callable`` can either
be a callable that accepts the request as its single positional
- parameter, or it can be a property descriptor. If ``name`` is
- ``None``, the name of the property will be computed from the
- name of the ``callable``.
+ parameter, or it can be a property descriptor. If ``callable`` is
+ a property descriptor, it has to be a instance of a class which is
+ a subclass of ``property``. If ``name`` is ``None``, the name of
+ the property will be computed from the name of the ``callable``.
If the ``callable`` is a property descriptor a ``ValueError``
will be raised if ``name`` is ``None`` or ``reify`` is ``True``.