diff MoinMoin/action/sendcached.py @ 4235:a6c315ff8d66

Make more use of werkzeugs Href object for URL-generation in MoinMoin
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sun, 20 Jul 2008 18:08:13 +0200
parents 1ca179133f01
children
line wrap: on
line diff
--- a/MoinMoin/action/sendcached.py	Sun Jul 20 16:43:12 2008 +0200
+++ b/MoinMoin/action/sendcached.py	Sun Jul 20 18:08:13 2008 +0200
@@ -136,10 +136,7 @@
 
 def get_url(request, key):
     """ get URL for the object cached for key """
-    return "%s/?%s" % (
-        request.script_root,
-        wikiutil.makeQueryString(dict(action=action_name, key=key), want_unicode=False))
-
+    return request.href(action=action_name, key=key)
 
 def get_cache_headers(request, key):
     """ get last_modified and headers cached for key """