From 5a11c03834cf4aedf2c21c050d2dea0b2d229076 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 24 Jun 2009 06:10:14 +0000 Subject: Change the implementation and the signature for ``route_url``. --- docs/narr/urldispatch.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/narr') diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index dab026455..356a14aef 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -399,10 +399,11 @@ this. .. code-block:: python from repoze.bfg.url import route_url - url = route_url('foo', a='1', b='2', c='3') + url = route_url(request, 'foo', a='1', b='2', c='3') This would return something like the string -``http://example.com/1/2/3``. +``http://example.com/1/2/3`` (at least if the current protocol and +hostname implied ``http:/example.com``). Cleaning Up After a Request --------------------------- -- cgit v1.2.3