diff options
| author | Chris McDonough <chrism@plope.com> | 2012-03-05 10:13:11 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-03-05 10:13:11 -0500 |
| commit | ca9f88da0aab4501ec05a9d9ac9a40e131a131dc (patch) | |
| tree | c5749af5fab33ea764fb9b12d5bc2396220df04e /docs/narr | |
| parent | 09c2ed0292cf787e3ddda0f0a95ff5992a80749f (diff) | |
| parent | 13305e14b74c4ef6bbd44817ed0eac5c36499c2b (diff) | |
| download | pyramid-ca9f88da0aab4501ec05a9d9ac9a40e131a131dc.tar.gz pyramid-ca9f88da0aab4501ec05a9d9ac9a40e131a131dc.tar.bz2 pyramid-ca9f88da0aab4501ec05a9d9ac9a40e131a131dc.zip | |
Merge branch '1.3-branch'
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/hooks.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index 24ea5de21..b6e3dd163 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -474,7 +474,7 @@ via configuration. from pyramid.config import Configurator from myapp.traversal import Traverser config = Configurator() - config.set_traverser(Traverser) + config.add_traverser(Traverser) In the example above, ``myapp.traversal.Traverser`` is assumed to be a class that implements the following interface: @@ -524,7 +524,7 @@ used. Otherwise, the default traverser would be used. For example: from myapp.resources import MyRoot from pyramid.config import Configurator config = Configurator() - config.set_traverser(Traverser, MyRoot) + config.add_traverser(Traverser, MyRoot) If the above stanza was added to a Pyramid ``__init__.py`` file's ``main`` function, :app:`Pyramid` would use the ``myapp.traversal.Traverser`` only |
