summaryrefslogtreecommitdiff
path: root/docs/narr/webob.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-01-19 02:08:12 +0000
committerChris McDonough <chrism@agendaless.com>2010-01-19 02:08:12 +0000
commit37bcb77a86b73151c781d8b0b8c2d3d4e14f5fe7 (patch)
treeb59bda2b0e5151ffe17b39f6fa6e82d6409b333e /docs/narr/webob.rst
parent56971c5db0ba61bdc270da8e72c35708f93d9e11 (diff)
downloadpyramid-37bcb77a86b73151c781d8b0b8c2d3d4e14f5fe7.tar.gz
pyramid-37bcb77a86b73151c781d8b0b8c2d3d4e14f5fe7.tar.bz2
pyramid-37bcb77a86b73151c781d8b0b8c2d3d4e14f5fe7.zip
Bug Fixes
--------- - When the ``Configurator`` is passed an instance of ``zope.component.registry.Components`` as a ``registry`` constructor argument, fix the instance up to have the attributes we expect of an instance of ``repoze.bfg.registry.Registry`` when ``setup_registry`` is called. This makes it possible to use the global Zope component registry as a BFG application registry. Documentation ------------- - Change renderings of ZCML directive documentation. - Add a narrative documentation chapter: "Using the Zope Component Architecture in ``repoze.bfg``"
Diffstat (limited to 'docs/narr/webob.rst')
-rw-r--r--docs/narr/webob.rst36
1 files changed, 21 insertions, 15 deletions
diff --git a/docs/narr/webob.rst b/docs/narr/webob.rst
index ba710d54d..d931e41a2 100644
--- a/docs/narr/webob.rst
+++ b/docs/narr/webob.rst
@@ -118,17 +118,17 @@ In addition to the standard :term:`WebOb` attributes,
:mod:`repoze.bfg` adds the following special attributes to every
request.
-``req.subpath``
- The traversal :term:`subpath` will be available as the ``subpath``
- attribute of the :term:`request` object. It will be a sequence
- containing zero or more elements (which will be Unicode objects).
- See :ref:`traversal_chapter` for information about the subpath.
+``req.context``
+ The :term:`context` will be available as the ``context`` attribute
+ of the :term:`request` object. It will be the context object
+ implied by the current request. See :ref:`traversal_chapter` for
+ information about context objects.
-``req.view_name``
- The :term:`view name` will be available as the ``view_name``
- attribute of the :term:`request` object. It will be a single string
- (possibly the empty string if we're rendering a default view).
- See :ref:`traversal_chapter` for information about view names.
+``req.registry``
+ The :term:`application registry` will be available as
+ the ``registry`` attribute of the :term:`request` object. See
+ :ref:`zca_chapter` for more information about the application
+ registry.
``req.root``
The :term:`root` object will be available as the ``root`` attribute
@@ -136,11 +136,11 @@ request.
traversal started (the root). See :ref:`traversal_chapter` for
information about root objects.
-``req.context``
- The :term:`context` will be available as the ``context`` attribute
- of the :term:`request` object. It will be the context object
- implied by the current request. See :ref:`traversal_chapter` for
- information about context objects.
+``req.subpath``
+ The traversal :term:`subpath` will be available as the ``subpath``
+ attribute of the :term:`request` object. It will be a sequence
+ containing zero or more elements (which will be Unicode objects).
+ See :ref:`traversal_chapter` for information about the subpath.
``req.traversed``
The "traversal path" will be as the ``traversed`` attribute of the
@@ -151,6 +151,12 @@ request.
included within the traversal path. See :ref:`traversal_chapter`
for more information.
+``req.view_name``
+ The :term:`view name` will be available as the ``view_name``
+ attribute of the :term:`request` object. It will be a single string
+ (possibly the empty string if we're rendering a default view).
+ See :ref:`traversal_chapter` for information about view names.
+
``req.virtual_root``
The :term:`virtual root` will be available as the ``virtual_root``
attribute of the :term:`request` object. It will be the virtual