diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-07-05 22:25:26 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-07-05 22:25:26 +0000 |
| commit | 727d349420b2f303bd8bb09fbd506113c8ac0f5c (patch) | |
| tree | c72d17b06f0b2e8be2fa82ac33b9ee5218cf47e9 /docs/narr/urldispatch.rst | |
| parent | 957a9366a72d4ee406e671e4e3652f85e9a5217c (diff) | |
| download | pyramid-727d349420b2f303bd8bb09fbd506113c8ac0f5c.tar.gz pyramid-727d349420b2f303bd8bb09fbd506113c8ac0f5c.tar.bz2 pyramid-727d349420b2f303bd8bb09fbd506113c8ac0f5c.zip | |
Spellcheck.
Diffstat (limited to 'docs/narr/urldispatch.rst')
| -rw-r--r-- | docs/narr/urldispatch.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index 90ddd6672..7e3454a2a 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -17,7 +17,7 @@ For instance, if all the data in your application lives in a relational database, and that relational database has no self-referencing tables that form a natural hierarchy, URL dispatch is easier to use than traversal, and is often a more natural fit for -creating an application that maniplates "flat" data. +creating an application that manipulates "flat" data. Concept and Usage ----------------- @@ -46,7 +46,7 @@ function (usually a traversal function). A root factory is not required for purely URL-dispatch-based apps: if the root factory callable is passed as ``None`` to the ``make_app`` -function, :mod:`repoze.bfg` will return a NotFound error to the user's +function, :mod:`repoze.bfg` will return a ``NotFound`` error to the user's browser when no routes match. .. note:: See :ref:`modelspy_project_section` for an example of a @@ -139,7 +139,7 @@ segment ("foo") and two dynamic segments ("baz", and "bar"):: foo/:baz/:bar -The above pattern will match these URLs, generating the followng +The above pattern will match these URLs, generating the following matchdicts:: foo/1/2 -> {'baz':u'1', 'bar':u'2'} @@ -173,7 +173,7 @@ not need to be preceded by a slash. For example:: foo/:baz/:bar*traverse -The above pattern will match these URLs, generating the followng +The above pattern will match these URLs, generating the following matchdicts:: foo/1/2/ -> {'baz':1, 'bar':2, 'traverse':()} @@ -204,7 +204,7 @@ commonly declared. Example 1 ~~~~~~~~~ -The simplest route delcaration: +The simplest route declaration: .. code-block:: xml :linenos: @@ -232,7 +232,7 @@ The ``mypackage.views`` module referred to above might look like so: In this case the context object passed to the view will be an instance of the ``repoze.bfg.urldispatch.DefaultRoutesContext``. This is the -type of obejct created for a context when there is no "factory" +type of object created for a context when there is no "factory" specified in the ``route`` declaration. It is a mapping object, a lot like a dictionary. |
