diff options
| author | Chris McDonough <chrism@plope.com> | 2010-11-02 03:35:17 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-11-02 03:35:17 -0400 |
| commit | 94b88987fd4f742538ccf43f5789e9c6463bca0e (patch) | |
| tree | 7fcd2c8bc79c36da71b8f580d036fc834d2ffa3f /docs/narr/configuration.rst | |
| parent | 8129f9ea73ac1c1fcacc3e9ccdd42a12994e7255 (diff) | |
| download | pyramid-94b88987fd4f742538ccf43f5789e9c6463bca0e.tar.gz pyramid-94b88987fd4f742538ccf43f5789e9c6463bca0e.tar.bz2 pyramid-94b88987fd4f742538ccf43f5789e9c6463bca0e.zip | |
- 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").
Diffstat (limited to 'docs/narr/configuration.rst')
| -rw-r--r-- | docs/narr/configuration.rst | 10 |
1 files changed, 5 insertions, 5 deletions
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): |
