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

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Thu Mar 8 13:59:07 CET 2012


Author: ludwig
Date: 2012-03-08 13:59:07 +0100 (Thu, 08 Mar 2012)
New Revision: 5884

Modified:
   base/trunk/mpulsweb/lib/helpers.py
Log:
Issue 2738: Replace url_for (lib/helpers.py)


Modified: base/trunk/mpulsweb/lib/helpers.py
===================================================================
--- base/trunk/mpulsweb/lib/helpers.py	2012-03-08 12:56:00 UTC (rev 5883)
+++ base/trunk/mpulsweb/lib/helpers.py	2012-03-08 12:59:07 UTC (rev 5884)
@@ -170,10 +170,10 @@
     out = []
     help = g.helpData.getHelp(help_id)
     if help:
-        out.append(tag("a", href=url_for(controller='/annotations',
+        out.append(tag("a", href=url(controller='annotations',
                                          action='help', id=help_id),
                        target="_blank"))
-        out.append(tag("img", src=url_for('/images/icons/formular/help.png'),
+        out.append(tag("img", src=url('/images/icons/formular/help.png'),
                        alt="help"))
         out.append('</a>')
     return literal("".join(out))
@@ -434,7 +434,7 @@
         # NOTE: Nested outline RG are not supported.
         element_id = ":".join(id.split(':')[1:][-2:])
     anchor_id = ":".join(id.split(':')[1:])
-    return  url_for(controller='/formularpage', action='select',
+    return  url(controller='formularpage', action='select',
             id=('%s:%s' % (page, element_id)),
             anchor=('%s:%s' % (name,
                 anchor_id)))



More information about the Mpuls-commits mailing list