diff options
| author | Casey Duncan <casey.duncan@gmail.com> | 2010-12-14 23:35:07 -0700 |
|---|---|---|
| committer | Casey Duncan <casey.duncan@gmail.com> | 2010-12-14 23:35:07 -0700 |
| commit | 1038f50c158ab2104e639cc1e60d6277dbe5648e (patch) | |
| tree | fe89bd6439b53495a8f3ce398bd8e66b65fab558 /docs | |
| parent | 243ab1775eb2a28dc417202ef2166e4a6f593c89 (diff) | |
| download | pyramid-1038f50c158ab2104e639cc1e60d6277dbe5648e.tar.gz pyramid-1038f50c158ab2104e639cc1e60d6277dbe5648e.tar.bz2 pyramid-1038f50c158ab2104e639cc1e60d6277dbe5648e.zip | |
clarify declaring an interface on a model instance vs. a class
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/models.rst | 5 |
1 files changed, 3 insertions, 2 deletions
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: |
