summaryrefslogtreecommitdiff
path: root/docs/narr/traversal.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-02-15 16:23:59 -0500
committerChris McDonough <chrism@plope.com>2012-02-15 16:23:59 -0500
commit1ca5b34f17ea889f705c1120a5b8878bff16ec63 (patch)
tree779b6b04fb29cd6e7d31bd8bd499dadcd49dcb50 /docs/narr/traversal.rst
parent2e7f0cfb4c5f0a4804e0c44cdf181c2ee35b020a (diff)
downloadpyramid-1ca5b34f17ea889f705c1120a5b8878bff16ec63.tar.gz
pyramid-1ca5b34f17ea889f705c1120a5b8878bff16ec63.tar.bz2
pyramid-1ca5b34f17ea889f705c1120a5b8878bff16ec63.zip
- Replace all mentions of zope.interface.implements with
zope.interface.implementer.
Diffstat (limited to 'docs/narr/traversal.rst')
-rw-r--r--docs/narr/traversal.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/narr/traversal.rst b/docs/narr/traversal.rst
index 8c5d950c1..8e7f93a1b 100644
--- a/docs/narr/traversal.rst
+++ b/docs/narr/traversal.rst
@@ -488,20 +488,21 @@ you must create an interface and mark up your resource classes or instances
with interface declarations that refer to this interface.
To attach an interface to a resource *class*, you define the interface and
-use the :func:`zope.interface.implements` function to associate the interface
-with the class.
+use the :func:`zope.interface.implementer` class decorator to associate the
+interface with the class.
.. code-block:: python
:linenos:
from zope.interface import Interface
- from zope.interface import implements
+ from zope.interface import implementer
class IHello(Interface):
""" A marker interface """
+ @implementer(IHello)
class Hello(object):
- implements(IHello)
+ pass
To attach an interface to a resource *instance*, you define the interface and
use the :func:`zope.interface.alsoProvides` function to associate the