diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-06-24 05:15:28 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-06-24 05:15:28 +0000 |
| commit | 87268814ece91aa2394feec47d8c95863e041c5a (patch) | |
| tree | c5a7b2c06fe445ce144ca335cb3297e3f1ffc800 /docs/tutorials/bfgwiki2/definingviews.rst | |
| parent | dc405b2e9bac8e43350442a7824901f5ced8e3d5 (diff) | |
| download | pyramid-87268814ece91aa2394feec47d8c95863e041c5a.tar.gz pyramid-87268814ece91aa2394feec47d8c95863e041c5a.tar.bz2 pyramid-87268814ece91aa2394feec47d8c95863e041c5a.zip | |
- Use ``repoze.bfg.url.route_url`` API in tutorials rather than Routes
``url_for`` API.
Diffstat (limited to 'docs/tutorials/bfgwiki2/definingviews.rst')
| -rw-r--r-- | docs/tutorials/bfgwiki2/definingviews.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/tutorials/bfgwiki2/definingviews.rst b/docs/tutorials/bfgwiki2/definingviews.rst index 515090e91..e12800d13 100644 --- a/docs/tutorials/bfgwiki2/definingviews.rst +++ b/docs/tutorials/bfgwiki2/definingviews.rst @@ -71,10 +71,11 @@ The ``view_wiki`` function will respond as the default view of a ``Wiki`` model object. It always redirects to a URL which represents the path to our "FrontPage". It returns an instance of the ``webob.exc.HTTPFound`` class (instances of which implement the WebOb -:term:`response` interface), It will use the the ``routes.url_for`` -API to construct a URL to the ``FrontPage`` page -(e.g. ``http://localhost:6543/FrontPage``), and will use it as the -"location" of the HTTPFound response, forming an HTTP redirect. +:term:`response` interface), It will use the the +``repoze.bfg.url.route_url`` API to construct a URL to the +``FrontPage`` page (e.g. ``http://localhost:6543/FrontPage``), and +will use it as the "location" of the HTTPFound response, forming an +HTTP redirect. The ``view_page`` view function ------------------------------- |
