summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-11-17 19:06:27 -0500
committerChris McDonough <chrism@plope.com>2010-11-17 19:06:27 -0500
commit647815ef5fb2ca795b2d4ceb8f6740acefb7c695 (patch)
treea6fbcfcad9b8e141ec52b85db2cfd9c9d412bda3
parent50fb1030b7491d5430d03a71a44e152180f22bc3 (diff)
downloadpyramid-647815ef5fb2ca795b2d4ceb8f6740acefb7c695.tar.gz
pyramid-647815ef5fb2ca795b2d4ceb8f6740acefb7c695.tar.bz2
pyramid-647815ef5fb2ca795b2d4ceb8f6740acefb7c695.zip
fix route_url on Jython
-rw-r--r--pyramid/url.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pyramid/url.py b/pyramid/url.py
index fca2582de..76d95689c 100644
--- a/pyramid/url.py
+++ b/pyramid/url.py
@@ -175,10 +175,11 @@ def route_path(route_name, request, *elements, **kw):
.. note:: Calling ``route_path('route', request)`` is the same as calling
``route_url('route', request, _app_url='')``. ``route_path`` is, in
fact, implemented in terms of ``route_url`` in just this way. As a
- result, passing ``_app_url`` within the ``**kw`` values passed to
- ``route_path`` will result in an exception.
+ result, any ``_app_url`` pass within the ``**kw`` values to
+ ``route_path`` will be ignored.
"""
- return route_url(route_name, request, *elements, _app_url='', **kw)
+ kw['_app_url'] = ''
+ return route_url(route_name, request, *elements, **kw)
def model_url(model, request, *elements, **kw):
"""