diff options
| author | Michael Merickel <michael@merickel.org> | 2016-04-07 01:16:45 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2016-04-07 01:27:06 -0500 |
| commit | a3db3cab713fecc0c83c742cfe3f0736b1d94a92 (patch) | |
| tree | ba3017bb9b0d6ddaed31bbfb64e9eac3c64d0e40 /docs | |
| parent | ecc9d82ef6bd50a08dcbee7286ba4581d3caa902 (diff) | |
| download | pyramid-a3db3cab713fecc0c83c742cfe3f0736b1d94a92.tar.gz pyramid-a3db3cab713fecc0c83c742cfe3f0736b1d94a92.tar.bz2 pyramid-a3db3cab713fecc0c83c742cfe3f0736b1d94a92.zip | |
separate the viewderiver module and allow overriding the mapper
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api/viewderivers.rst | 16 | ||||
| -rw-r--r-- | docs/narr/hooks.rst | 9 |
2 files changed, 19 insertions, 6 deletions
diff --git a/docs/api/viewderivers.rst b/docs/api/viewderivers.rst new file mode 100644 index 000000000..a4ec107b6 --- /dev/null +++ b/docs/api/viewderivers.rst @@ -0,0 +1,16 @@ +.. _viewderivers_module: + +:mod:`pyramid.viewderivers` +--------------------------- + +.. automodule:: pyramid.viewderivers + + .. attribute:: INGRESS + + Constant representing the request ingress, for use in ``under`` + arguments to :meth:`pyramid.config.Configurator.add_view_deriver`. + + .. attribute:: MAPPED_VIEW + + Constant representing the closest view deriver, for use in ``over`` + arguments to :meth:`pyramid.config.Configurator.add_view_deriver`. diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index a32e94d1a..3a1ad8363 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -1580,12 +1580,6 @@ There are several built-in view derivers that :app:`Pyramid` will automatically apply to any view. Below they are defined in order from furthest to closest to the user-defined :term:`view callable`: -``authdebug_view`` - - Used to output useful debugging information when - ``pyramid.debug_authorization`` is enabled. This element is a no-op - otherwise. - ``secured_view`` Enforce the ``permission`` defined on the view. This element is a no-op if no @@ -1593,6 +1587,9 @@ the user-defined :term:`view callable`: default permission was assigned via :meth:`pyramid.config.Configurator.set_default_permission`. + This element will also output useful debugging information when + ``pyramid.debug_authorization`` is enabled. + ``owrapped_view`` Invokes the wrapped view defined by the ``wrapper`` option. |
