diff options
| author | Chris McDonough <chrism@plope.com> | 2011-01-28 23:39:45 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-01-28 23:39:45 -0500 |
| commit | 54ae4cdd4c4a568404fa2672765cdee25d271370 (patch) | |
| tree | e681ad663845463a8f80bd817ca9f59e707999f7 | |
| parent | 82043fde6b343ccc065e880d2e9dcca8a99512ff (diff) | |
| download | pyramid-54ae4cdd4c4a568404fa2672765cdee25d271370.tar.gz pyramid-54ae4cdd4c4a568404fa2672765cdee25d271370.tar.bz2 pyramid-54ae4cdd4c4a568404fa2672765cdee25d271370.zip | |
remove inappropriate warning; change note wording
| -rw-r--r-- | pyramid/view.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pyramid/view.py b/pyramid/view.py index c3ab1d4b1..935104035 100644 --- a/pyramid/view.py +++ b/pyramid/view.py @@ -130,9 +130,10 @@ def is_response(ob): """ Return ``True`` if ``ob`` implements the interface implied by :ref:`the_response`. ``False`` if not. - .. note:: this isn't a true interface check (in Zope terms), it's a - duck-typing check, as response objects are not obligated to - actually implement a Zope interface.""" + .. note:: This isn't a true interface or subclass check. Instead, it's a + duck-typing check, as response objects are not obligated to be of a + particular class or provide any particular Zope interface.""" + # response objects aren't obligated to implement a Zope interface, # so we do it the hard way if ( hasattr(ob, 'app_iter') and hasattr(ob, 'headerlist') and @@ -318,8 +319,6 @@ class view_config(object): non-class callable. See :ref:`class_as_view` for more information. - .. warning:: Using a class as a view is a new feature in 0.8.1+. - The ``view_config`` decorator can also be used against a class method:: |
