diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-09-30 05:49:12 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-09-30 05:49:12 +0000 |
| commit | da6ed19bc80cae601b3d8cbafb4cff425e04a3a1 (patch) | |
| tree | 3c7094561248a1009611ad8253021ef36ace9ba3 /docs/narr | |
| parent | 27ae86b27d2ea8956210a12c7564e07b3f6101ff (diff) | |
| download | pyramid-da6ed19bc80cae601b3d8cbafb4cff425e04a3a1.tar.gz pyramid-da6ed19bc80cae601b3d8cbafb4cff425e04a3a1.tar.bz2 pyramid-da6ed19bc80cae601b3d8cbafb4cff425e04a3a1.zip | |
- Add a diagram which explains the operation of the BFG router to the
"Router" narrative chapter.
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/router.png | bin | 0 -> 168209 bytes | |||
| -rw-r--r-- | docs/narr/router.rst | 10 |
2 files changed, 6 insertions, 4 deletions
diff --git a/docs/narr/router.png b/docs/narr/router.png Binary files differnew file mode 100644 index 000000000..fc4407e81 --- /dev/null +++ b/docs/narr/router.png diff --git a/docs/narr/router.rst b/docs/narr/router.rst index a86e5267c..55df2936c 100644 --- a/docs/narr/router.rst +++ b/docs/narr/router.rst @@ -3,6 +3,8 @@ How :mod:`repoze.bfg` Processes A Request ========================================= +.. image:: router.png + Once a :mod:`repoze.bfg` application is up and running, it is ready to accept requests and return responses. @@ -65,11 +67,11 @@ processing? a :term:`view name` as well as other ancillary information. #. The request is decorated with various names returned from the - traverser (such as ``context``, ``view_name``, ``matchdict``, and - so forth), so they can be accessed via e.g. ``request.context`` - within :term:`view` code. + traverser (such as ``context``, ``view_name``, and so forth), so + they can be accessed via e.g. ``request.context`` within + :term:`view` code. -#. If an :term:`authentication policy` is in use, :mod:`repoze.bfg` +#. If an :term:`authorization policy` is in use, :mod:`repoze.bfg` passes the context, the request, and the view_name to a function which determines whether the view being asked for can be executed by the requesting user, based on credential information in the |
