diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-12-26 19:23:29 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-12-26 19:23:29 +0000 |
| commit | 831da8a6969703d79c4efb27a96c734140babf45 (patch) | |
| tree | 25c9bce67e31e310ff9bd715d50b03be05ee27b5 /repoze | |
| parent | bc034ab4f50adde1a21062c7b8a583f7c9acf545 (diff) | |
| download | pyramid-831da8a6969703d79c4efb27a96c734140babf45.tar.gz pyramid-831da8a6969703d79c4efb27a96c734140babf45.tar.bz2 pyramid-831da8a6969703d79c4efb27a96c734140babf45.zip | |
- Created new top-level documentation section: "ZCML Directives".
This section contains detailed ZCML directive information, some of
which was removed from various narrative chapters.
Diffstat (limited to 'repoze')
| -rw-r--r-- | repoze/bfg/includes/meta.zcml | 12 | ||||
| -rw-r--r-- | repoze/bfg/view.py | 15 |
2 files changed, 15 insertions, 12 deletions
diff --git a/repoze/bfg/includes/meta.zcml b/repoze/bfg/includes/meta.zcml index feb44f5dd..25894df71 100644 --- a/repoze/bfg/includes/meta.zcml +++ b/repoze/bfg/includes/meta.zcml @@ -47,6 +47,12 @@ /> <meta:directive + name="renderer" + schema="repoze.bfg.zcml.IRendererDirective" + handler="repoze.bfg.zcml.renderer" + /> + + <meta:directive name="repozewho1authenticationpolicy" schema="repoze.bfg.zcml.IRepozeWho1AuthenticationPolicyDirective" handler="repoze.bfg.zcml.repozewho1authenticationpolicy" @@ -71,12 +77,6 @@ /> <meta:directive - name="renderer" - schema="repoze.bfg.zcml.IRendererDirective" - handler="repoze.bfg.zcml.renderer" - /> - - <meta:directive name="adapter" schema="repoze.bfg.zcml.IAdapterDirective" handler="repoze.bfg.zcml.adapter" diff --git a/repoze/bfg/view.py b/repoze/bfg/view.py index 61286f46c..26c7f4666 100644 --- a/repoze/bfg/view.py +++ b/repoze/bfg/view.py @@ -323,9 +323,9 @@ class bfg_view(object): If ``accept`` is specified, it must be a mimetype value. If ``accept`` is specified, the view will only be invoked if the ``Accept`` HTTP header matches the value requested. See the - description of ``accept`` in :ref:`the_view_zcml_directive` for - information about the allowable composition and matching behavior - of this value. + description of ``accept`` in :ref:`view_directive` for information + about the allowable composition and matching behavior of this + value. If ``header`` is specified, it must be a header name or a ``headername:headervalue`` pair. If ``header`` is specified, and @@ -333,9 +333,9 @@ class bfg_view(object): matches the value requested. If ``header`` is specified without a value (a bare header name only), the view will only be invoked if the HTTP header exists with any value in the request. See the - description of ``header`` in :ref:`the_view_zcml_directive` for - information about the allowable composition and matching behavior - of this value. + description of ``header`` in :ref:`view_directive` for information + about the allowable composition and matching behavior of this + value. If ``path_info`` is specified, it must be a regular expression. The view will only be invoked if the ``PATH_INFO`` @@ -444,6 +444,9 @@ class bfg_view(object): <scan package="."/> + See :ref:`scan_directive` for more information about the ZCML + ``scan`` directive. + Or, if you don't use ZCML, use the :meth:`repoze.bfg.configuration.Configurator.scan` method:: |
