diff options
| author | Chris McDonough <chrism@plope.com> | 2010-12-18 15:42:07 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-12-18 15:42:07 -0500 |
| commit | 4c4f08969e64fe6878da0c0ce753d1e3fcdbbb56 (patch) | |
| tree | 77e64c5f931c035b78a08cf19fa9ab9d4c076fa9 /docs/tutorials/wiki/definingviews.rst | |
| parent | a5ffd62175a09402fbe37ec8c2077873e0a35903 (diff) | |
| download | pyramid-4c4f08969e64fe6878da0c0ce753d1e3fcdbbb56.tar.gz pyramid-4c4f08969e64fe6878da0c0ce753d1e3fcdbbb56.tar.bz2 pyramid-4c4f08969e64fe6878da0c0ce753d1e3fcdbbb56.zip | |
resource/asset normalization
Diffstat (limited to 'docs/tutorials/wiki/definingviews.rst')
| -rw-r--r-- | docs/tutorials/wiki/definingviews.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/tutorials/wiki/definingviews.rst b/docs/tutorials/wiki/definingviews.rst index 97314fb77..5250cb5e5 100644 --- a/docs/tutorials/wiki/definingviews.rst +++ b/docs/tutorials/wiki/definingviews.rst @@ -51,15 +51,15 @@ wiki itself (it will answer on the root URL), another named The ``view_wiki`` view function ------------------------------- -The ``view_wiki`` function will be configured to respond as the -default view of a ``Wiki`` model object. It always redirects to the -``Page`` object named "FrontPage". It returns an instance of the -:class:`pyramid.httpexceptions.HTTPFound` class (instances of which -implement the WebOb :term:`response` interface), and the -:func:`pyramid.url.model_url` API. :func:`pyramid.url.model_url` -constructs a URL to the ``FrontPage`` page -(e.g. ``http://localhost:6543/FrontPage``), and uses it as the -"location" of the HTTPFound response, forming an HTTP redirect. +The ``view_wiki`` function will be configured to respond as the default view +of a ``Wiki`` model object. It always redirects to the ``Page`` object named +"FrontPage". It returns an instance of the +:class:`pyramid.httpexceptions.HTTPFound` class (instances of which implement +the WebOb :term:`response` interface), and the +:func:`pyramid.url.resource_url` API. :func:`pyramid.url.resource_url` +constructs a URL to the ``FrontPage`` page resource +(e.g. ``http://localhost:6543/FrontPage``), and uses it as the "location" of +the HTTPFound response, forming an HTTP redirect. The ``view_page`` view function ------------------------------- |
