From 1038f50c158ab2104e639cc1e60d6277dbe5648e Mon Sep 17 00:00:00 2001 From: Casey Duncan Date: Tue, 14 Dec 2010 23:35:07 -0700 Subject: clarify declaring an interface on a model instance vs. a class --- docs/narr/models.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/narr/models.rst b/docs/narr/models.rst index 2d7485c16..a1e21d2bb 100644 --- a/docs/narr/models.rst +++ b/docs/narr/models.rst @@ -130,8 +130,9 @@ that a model implements an interface by using the ``BlogEntry`` model implements the ``IBlogEntry`` interface. You can also specify that a *particular* model instance provides an -interface (as opposed to its class). To do so, use the -:func:`zope.interface.directlyProvides` function: +interface, as opposed to its class as above, which implies that all +instances do. To do so, use the :func:`zope.interface.directlyProvides` +function: .. code-block:: python :linenos: -- cgit v1.2.3