diff options
| author | Chris McDonough <chrism@plope.com> | 2011-10-06 05:40:58 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-10-06 05:40:58 -0400 |
| commit | 87dbfa4cd26171414d971d4f56f2aceaceb9a6eb (patch) | |
| tree | 38876d7fe78e1b32763fa185f0dc9546e113671a /docs/narr/hooks.rst | |
| parent | 206a7f6eb776ff91043ce9cf4627dad20f68b937 (diff) | |
| parent | 75f05a60f8754c9c5c234b9731dbc08646ba89a9 (diff) | |
| download | pyramid-87dbfa4cd26171414d971d4f56f2aceaceb9a6eb.tar.gz pyramid-87dbfa4cd26171414d971d4f56f2aceaceb9a6eb.tar.bz2 pyramid-87dbfa4cd26171414d971d4f56f2aceaceb9a6eb.zip | |
Merge branch 'feature.glue'
Diffstat (limited to 'docs/narr/hooks.rst')
| -rw-r--r-- | docs/narr/hooks.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index 7db1eca73..3c6799afb 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -727,7 +727,7 @@ A user might make use of these framework components like so: from pyramid.response import Response from pyramid.config import Configurator import pyramid_handlers - from paste.httpserver import serve + from wsgiref.simple_server import make_server class MyController(BaseController): def index(self, id): @@ -738,7 +738,8 @@ A user might make use of these framework components like so: config.include(pyramid_handlers) config.add_handler('one', '/{id}', MyController, action='index') config.add_handler('two', '/{action}/{id}', MyController) - serve(config.make_wsgi_app()) + server.make_server('0.0.0.0', 8080, config.make_wsgi_app()) + server.serve_forever() The :meth:`pyramid.config.Configurator.set_view_mapper` method can be used to set a *default* view mapper (overriding the superdefault view mapper used by @@ -1012,7 +1013,7 @@ Effectively, ``under`` means "closer to the main Pyramid application than", For example, the following call to :meth:`~pyramid.config.Configurator.add_tween` will attempt to place the tween factory represented by ``myapp.tween_factory`` directly 'above' (in -``paster ptweens`` order) the main Pyramid request handler. +``ptweens`` order) the main Pyramid request handler. .. code-block:: python :linenos: @@ -1136,6 +1137,6 @@ time. Displaying Tween Ordering ~~~~~~~~~~~~~~~~~~~~~~~~~ -The ``paster ptweens`` command-line utility can be used to report the current +The ``ptweens`` command-line utility can be used to report the current implict and explicit tween chains used by an application. See :ref:`displaying_tweens`. |
