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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Dec 5 15:34:49 CET 2011


Author: ludwig
Date: 2011-12-05 15:34:49 +0100 (Mon, 05 Dec 2011)
New Revision: 5692

Modified:
   base/trunk/mpulsweb/lib/formedrenderer.py
Log:
Issue 2654: Squeeze upgrade: apply url_for without id, if id is None.
Needs to work with routes 1.12.3 .


Modified: base/trunk/mpulsweb/lib/formedrenderer.py
===================================================================
--- base/trunk/mpulsweb/lib/formedrenderer.py	2011-12-02 12:41:14 UTC (rev 5691)
+++ base/trunk/mpulsweb/lib/formedrenderer.py	2011-12-05 14:34:49 UTC (rev 5692)
@@ -38,6 +38,8 @@
 class UrlFactory(BaseUrlFactory):
 
     def url_for(self, controller, action, id=None):
+        if not id:
+            return url_for(controller=controller, action=action)
         return url_for(controller=controller, action=action, id=id)
 
     def icon(self, name):



More information about the Mpuls-commits mailing list