summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-02-18 16:53:57 -0500
committerChris McDonough <chrism@plope.com>2012-02-18 16:53:57 -0500
commit8b59f6a32f7851be0152caaa94ffe5e0366b8815 (patch)
tree1827e44c6ae66358107b909950516108dec1abbe /docs
parent4c49ad3306522ce4b1806ac7175447d7e8a3c3a9 (diff)
downloadpyramid-8b59f6a32f7851be0152caaa94ffe5e0366b8815.tar.gz
pyramid-8b59f6a32f7851be0152caaa94ffe5e0366b8815.tar.bz2
pyramid-8b59f6a32f7851be0152caaa94ffe5e0366b8815.zip
dont allow a registration for the request type in add_resource_url_adapter (we can always add it later, but can never take it away); squash an import warning
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/hooks.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst
index a782b9ec6..eaccc14a3 100644
--- a/docs/narr/hooks.rst
+++ b/docs/narr/hooks.rst
@@ -495,7 +495,7 @@ For example:
from myapp.traversal import ResourceURLAdapter
from myapp.resources import MyRoot
- config.add_resource_url_adapter(ResourceURLAdapter, resource_iface=MyRoot)
+ config.add_resource_url_adapter(ResourceURLAdapter, MyRoot)
In the above example, the ``myapp.traversal.ResourceURLAdapter`` class will
be used to provide services to :meth:`~pyramid.request.Request.resource_url`