diff options
| author | Michael Merickel <michael@merickel.org> | 2014-11-04 17:16:27 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2014-11-04 17:16:27 -0600 |
| commit | ba0593aa9488a32193113048f14189b76d374102 (patch) | |
| tree | b7cfa25e4edaa07070a2ac0698b9e19ad3897fb9 | |
| parent | f8cee4b3021fea94407414c1a33916b54859711c (diff) | |
| download | pyramid-ba0593aa9488a32193113048f14189b76d374102.tar.gz pyramid-ba0593aa9488a32193113048f14189b76d374102.tar.bz2 pyramid-ba0593aa9488a32193113048f14189b76d374102.zip | |
fix squashed docstring on set_request_property
fixes #1436
| -rw-r--r-- | pyramid/config/factories.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pyramid/config/factories.py b/pyramid/config/factories.py index 1990c377a..5ce1081c6 100644 --- a/pyramid/config/factories.py +++ b/pyramid/config/factories.py @@ -1,4 +1,4 @@ -from zope.deprecation import deprecate +from zope.deprecation import deprecated from zope.interface import implementer from pyramid.interfaces import ( @@ -180,8 +180,6 @@ class FactoriesConfiguratorMixin(object): introspectables=(intr,)) @action_method - @deprecate('set_request_propery() is deprecated as of Pyramid 1.5; use ' - 'add_request_method() with the property=True argument instead') def set_request_property(self, callable, name=None, reify=False): """ Add a property to the request object. @@ -195,6 +193,11 @@ class FactoriesConfiguratorMixin(object): self.add_request_method( callable, name=name, property=not reify, reify=reify) + deprecated( + set_request_property, + 'set_request_propery() is deprecated as of Pyramid 1.5; use ' + 'add_request_method() with the property=True argument instead') + @implementer(IRequestExtensions) class _RequestExtensions(object): def __init__(self): |
