diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-01-26 17:40:46 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-01-26 17:40:46 +0000 |
| commit | 01132b859acb3850eb6d9de6a1d8c2d005165fe3 (patch) | |
| tree | 9cf87c214bb57078154af59cf76b039a2cf4f68f /docs | |
| parent | 5d4f043085453f6cf657acaa0da7bc6ac944dcc3 (diff) | |
| download | pyramid-01132b859acb3850eb6d9de6a1d8c2d005165fe3.tar.gz pyramid-01132b859acb3850eb6d9de6a1d8c2d005165fe3.tar.bz2 pyramid-01132b859acb3850eb6d9de6a1d8c2d005165fe3.zip | |
Rendering.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/urldispatch.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index 7443610b8..9d843799b 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -248,15 +248,15 @@ assuming that ``.models.Idea`` resolves to a class that accepts arbitrary key/value pair arguments. .. note:: Values prefixed with a period (``.``) for the ``factory`` - and ``provides`` attributes of a ``route`` (such as ``.models.Idea` - above) mean "relative to the Python package directory in which this - :term:`ZCML` file is stored". So if the above ``route`` - declaration was made inside a ``configure.zcml`` file that lived in - the ``hello`` package, you could replace the relative - ``.models.Idea`` with the absolute ``hello.models.Idea`` Either the - relative or absolute form is functionally equivalent. It's often - useful to use the relative form, in case your package's name - changes. It's also shorter to type. + and ``provides`` attributes of a ``route`` (such as + ``.models.Idea`` above) mean "relative to the Python package + directory in which this :term:`ZCML` file is stored". So if the + above ``route`` declaration was made inside a ``configure.zcml`` + file that lived in the ``hello`` package, you could replace the + relative ``.models.Idea`` with the absolute ``hello.models.Idea`` + Either the relative or absolute form is functionally equivalent. + It's often useful to use the relative form, in case your package's + name changes. It's also shorter to type. All context objects manufactured via URL dispatch will be decorated by default with the ``repoze.bfg.interfaces.IRoutesContext`` |
