From 54ae4cdd4c4a568404fa2672765cdee25d271370 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 28 Jan 2011 23:39:45 -0500 Subject: remove inappropriate warning; change note wording --- pyramid/view.py | 9 ++++----- 1 file 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:: -- cgit v1.2.3