From 647815ef5fb2ca795b2d4ceb8f6740acefb7c695 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 17 Nov 2010 19:06:27 -0500 Subject: fix route_url on Jython --- pyramid/url.py | 7 ++++--- 1 file 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): """ -- cgit v1.2.3