Permalink
Browse files

use a more suitable Sphinx directive

  • Loading branch information...
1 parent 0d40143 commit 231fbba4f9adbe32537bcd1e995022f401117058 @tshepang tshepang committed Feb 9, 2013
Showing with 3 additions and 7 deletions.
  1. +1 −3 pyramid/config/factories.py
  2. +2 −4 pyramid/interfaces.py
@@ -182,9 +182,7 @@ def register():
def set_request_property(self, callable, name=None, reify=False):
""" Add a property to the request object.
- .. warning::
-
- This method has been docs-deprecated as of Pyramid 1.4.
+ .. deprecated:: 1.4
:meth:`pyramid.config.Configurator.add_request_method` should be
used instead.
View
@@ -744,10 +744,8 @@ class IResourceURL(Interface):
class IContextURL(IResourceURL):
""" An adapter which deals with URLs related to a context.
- ..warning::
-
- This interface is deprecated as of Pyramid 1.3 with the introduction of
- IResourceURL.
+ .. deprecated:: 1.3
+ use IResourceURL instead.
"""
# this class subclasses IResourceURL because request.resource_url looks
# for IResourceURL via queryAdapter. queryAdapter will find a deprecated

0 comments on commit 231fbba

Please sign in to comment.