diff options
| author | Chris McDonough <chrism@plope.com> | 2010-12-18 15:12:46 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-12-18 15:12:46 -0500 |
| commit | a5ffd62175a09402fbe37ec8c2077873e0a35903 (patch) | |
| tree | 5922c246046dc8ac833f260b7f82d629f406e3fa /docs/narr/handlers.rst | |
| parent | bbb9b5a5b1b97bf3c333a7fbfa68cc773ac9d263 (diff) | |
| download | pyramid-a5ffd62175a09402fbe37ec8c2077873e0a35903.tar.gz pyramid-a5ffd62175a09402fbe37ec8c2077873e0a35903.tar.bz2 pyramid-a5ffd62175a09402fbe37ec8c2077873e0a35903.zip | |
model->resource; make docs render without warnings
Diffstat (limited to 'docs/narr/handlers.rst')
| -rw-r--r-- | docs/narr/handlers.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/handlers.rst b/docs/narr/handlers.rst index f6e658cf0..5b6f71984 100644 --- a/docs/narr/handlers.rst +++ b/docs/narr/handlers.rst @@ -100,7 +100,7 @@ Using :meth:`~pyramid.config.Configurator.add_handler` When calling :meth:`~pyramid.config.Configurator.add_handler`, an ``action`` is required in either the route pattern or as a keyword argument, but **cannot appear in both places**. A ``handler`` argument must also be -supplied, which can be either a :term:`resource specification` or a Python +supplied, which can be either a :term:`asset specification` or a Python reference to the handler class. Additional keyword arguments are passed directly through to :meth:`pyramid.config.Configurator.add_route`. @@ -112,7 +112,7 @@ For example: config.add_handler('hello', '/hello/{action}', handler='mypackage.handlers:MyHandler') -In larger applications, it is advised to use a :term:`resource specification` +In larger applications, it is advised to use a :term:`asset specification` with :meth:`~pyramid.config.Configurator.add_handler` to avoid having to import every handler class. |
