From 94b88987fd4f742538ccf43f5789e9c6463bca0e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 2 Nov 2010 03:35:17 -0400 Subject: - Remove references to 'WebOb' Response and just call it 'Response', and note that it is imported from pyramid. API docs can mention its inheritance from webob (aka "Provide a webob.Response class facade for forward compat"). --- docs/narr/configuration.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/narr/configuration.rst') diff --git a/docs/narr/configuration.rst b/docs/narr/configuration.rst index a62cf76ff..cbc49d94b 100644 --- a/docs/narr/configuration.rst +++ b/docs/narr/configuration.rst @@ -52,9 +52,9 @@ imperatively: .. code-block:: python :linenos: - from webob import Response from paste.httpserver import serve from pyramid.configuration import Configurator + from pyramid.response import Response def hello_world(request): return Response('Hello world!') @@ -98,8 +98,8 @@ In a file named ``helloworld.py``: .. code-block:: python :linenos: - from webob import Response from paste.httpserver import serve + from pyramid.response import Response from pyramid.configuration import Configurator def hello_world(request): @@ -277,8 +277,8 @@ referred to by the declaration itself. For example: .. code-block:: python :linenos: + from pyramid.response import Response from pyramid.view import view_config - from webob import Response @view_config(name='hello', request_method='GET') def hello(request): @@ -306,8 +306,8 @@ and its subpackages. For example: :linenos: from paste.httpserver import serve + from pyramid.response import Response from pyramid.view import view_config - from webob import Response @view_config() def hello(request): @@ -334,8 +334,8 @@ directive, the package the ZCML file points to is scanned. # helloworld.py from paste.httpserver import serve + from pyramid.response import Response from pyramid.view import view_config - from webob import Response @view_config() def hello(request): -- cgit v1.2.3