From c6e58bb5f01d37c2dc1c704c0915dc995d49a262 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 3 Sep 2008 17:43:57 +0000 Subject: - Add startup process docs. --- docs/glossary.rst | 26 ++++- docs/index.rst | 1 + docs/narr/MyProject/myproject/configure.zcml | 2 +- docs/narr/MyProject/myproject/run.py | 12 +- docs/narr/project.rst | 23 ++-- docs/narr/startup.rst | 169 +++++++++++++++++++++++++++ docs/narr/traversal.rst | 138 ++++++++++++---------- docs/notes.txt | 7 +- 8 files changed, 293 insertions(+), 85 deletions(-) create mode 100644 docs/narr/startup.rst (limited to 'docs') diff --git a/docs/glossary.rst b/docs/glossary.rst index 439b39424..1dd5fa821 100644 --- a/docs/glossary.rst +++ b/docs/glossary.rst @@ -31,6 +31,15 @@ Glossary files that have the suffix of ``.egg``, ``.tar.gz``, or ``.zip``. Distributions are the target of Setuptools commands such as ``easy_install``. + Entry Point + A :term:`setuptools` indirection, defined within a setuptools + :term:`distribution` setup.py. It is usually a name which refers + to a function somewhere in a package which is held by the + distribution. + Dotted Python name + A reference to a Python object by name using a string, in the form + ``path.to.modulename:attributename``. Often used in Paste and + setuptools configurations. View A "view" is a callable which returns a response object. It should accept two values: context and request. @@ -52,6 +61,11 @@ Glossary model in order to find a :term:`context`. The :mod:`repoze.bfg` *router* performs traversal of model objects. See the :ref:`traversal_chapter` chapter for more information. + Router + The :term:`WSGI` application created when you start a + :mod:`repoze.bfg` application. The router intercepts requests, + invokes traversal, calls view functions, and returns responses to + the WSGI server. URL dispatch An alternative to graph traversal as a mechanism for locating a :term:`context` for a :term:`view`. When you use :term:`Routes` @@ -156,6 +170,12 @@ Glossary encoding, and other functions. See `WSGI.org `_ or `PyPI `_ to find middleware for your application. + Pipeline + The :term:`Paste` term for a single configuration of a WSGI + server, a WSGI application, with a set of middleware in-between. + mod_wsgi + An `Apache module `_ for hosting + Python WSGI applications. Zope `The Z Object Publishing Framework `_. The granddaddy of Python web frameworks. @@ -220,4 +240,8 @@ Glossary A `plain text format `_ that is the defacto standard for descriptive text shipped in :term:`distribution` files, and Python docstrings. - + Subpath + A list of element "left over" after the :term:`router` has + performed a successful traversal to a view. The subpath is a + sequence of strings, e.g. ``['left', 'over', 'names']``. + diff --git a/docs/index.rst b/docs/index.rst index 3d18c115f..5362b9681 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -25,6 +25,7 @@ Narrative documentation in chapter form explaining how to use narr/introduction narr/install narr/project + narr/startup narr/urlmapping narr/traversal narr/urldispatch diff --git a/docs/narr/MyProject/myproject/configure.zcml b/docs/narr/MyProject/myproject/configure.zcml index 174b27354..c9bb92565 100644 --- a/docs/narr/MyProject/myproject/configure.zcml +++ b/docs/narr/MyProject/myproject/configure.zcml @@ -3,7 +3,7 @@ i18n_domain="repoze.bfg"> - +