diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-06-24 06:10:14 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-06-24 06:10:14 +0000 |
| commit | 5a11c03834cf4aedf2c21c050d2dea0b2d229076 (patch) | |
| tree | 9f0caf887678c0248d59a35f38597a3c50e6c32e /docs/narr | |
| parent | 5e3e39bfb3fe6d5252e428f2eea4e34498b24ba1 (diff) | |
| download | pyramid-5a11c03834cf4aedf2c21c050d2dea0b2d229076.tar.gz pyramid-5a11c03834cf4aedf2c21c050d2dea0b2d229076.tar.bz2 pyramid-5a11c03834cf4aedf2c21c050d2dea0b2d229076.zip | |
Change the implementation and the signature for ``route_url``.
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/urldispatch.rst | 5 |
1 files changed, 3 insertions, 2 deletions
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 --------------------------- |
