[Mpuls-commits] r5890 - base/trunk/mpulsweb/lib

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Thu Mar 8 15:35:59 CET 2012


Author: ludwig
Date: 2012-03-08 15:35:59 +0100 (Thu, 08 Mar 2012)
New Revision: 5890

Modified:
   base/trunk/mpulsweb/lib/formedrenderer.py
Log:
Issue 2738 Bugfix url_for in UrlFactory cannot use url.


Modified: base/trunk/mpulsweb/lib/formedrenderer.py
===================================================================
--- base/trunk/mpulsweb/lib/formedrenderer.py	2012-03-08 14:08:05 UTC (rev 5889)
+++ base/trunk/mpulsweb/lib/formedrenderer.py	2012-03-08 14:35:59 UTC (rev 5890)
@@ -32,16 +32,16 @@
 from formed.renderer.html import RendererContext, Container, Item
 from formed.renderer.helpers import tag, escape
 
-from mpulsweb.lib.helpers import url
+from mpulsweb.lib.helpers import url_for,url
 
 
 class UrlFactory(BaseUrlFactory):
 
     def url_for(self, controller, action, id=None):
-        url_args = {"controller": controller, "action":action}
+        url_for_args = {"controller": controller, "action":action}
         if not id is None:
-            url_args["id"] = id
-        return url(**url_args)
+            url_for_args["id"] = id
+        return url_for(**url_for_args)
 
     def icon(self, name):
         """Return the url for the icon given by name."""



More information about the Mpuls-commits mailing list