From 87268814ece91aa2394feec47d8c95863e041c5a Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 24 Jun 2009 05:15:28 +0000 Subject: - Use ``repoze.bfg.url.route_url`` API in tutorials rather than Routes ``url_for`` API. --- docs/tutorials/bfgwiki2/definingviews.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'docs/tutorials/bfgwiki2/definingviews.rst') 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 ------------------------------- -- cgit v1.2.3