summaryrefslogtreecommitdiff
path: root/docs/narr/hooks.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-01-16 17:41:10 -0500
committerChris McDonough <chrism@plope.com>2011-01-16 17:41:10 -0500
commit2fa5764cb1fd001550ae7c985333718667b86b1c (patch)
treec9dab598b54ff97c8f900c0d3b3e1b4106863c72 /docs/narr/hooks.rst
parente333c2c2236cbfd11809ee393aa71be1b4846d88 (diff)
downloadpyramid-2fa5764cb1fd001550ae7c985333718667b86b1c.tar.gz
pyramid-2fa5764cb1fd001550ae7c985333718667b86b1c.tar.bz2
pyramid-2fa5764cb1fd001550ae7c985333718667b86b1c.zip
- The ``pylons_minimal``, ``pylons_basic`` and ``pylons_sqla`` paster
templates were removed. Use ``pyramid_sqla`` (available from PyPI) as a generic replacement for Pylons-esque development. - All references to ``add_handler`` and the ``handler`` ZCML directive have been removed from the docs, and stubs which point to ``pylons_handlers`` package have replaced them.
Diffstat (limited to 'docs/narr/hooks.rst')
-rw-r--r--docs/narr/hooks.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst
index c12a5abb4..96515c195 100644
--- a/docs/narr/hooks.rst
+++ b/docs/narr/hooks.rst
@@ -611,6 +611,7 @@ A user might make use of these framework components like so:
from webob import Response
from pyramid.config import Configurator
+ import pyramid_handlers
from paste.httpserver import serve
class MyController(BaseController):
@@ -619,6 +620,7 @@ A user might make use of these framework components like so:
if __name__ == '__main__':
config = Configurator()
+ config.include(pyramid_handlers)
config.add_handler('one', '/{id}', MyController, action='index')
config.add_handler('two', '/{action}/{id}', MyController)
serve(config.make_wsgi_app())