[Mpuls-commits] r2776 - in base/trunk: . mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed May 26 18:42:42 CEST 2010


Author: bh
Date: 2010-05-26 18:42:41 +0200 (Wed, 26 May 2010)
New Revision: 2776

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/controllers/privacy.py
Log:
* mpulsweb/controllers/privacy.py (PrivacyController.decline): Use
h.url_for consistently for all-intra application URLs.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-05-26 16:35:35 UTC (rev 2775)
+++ base/trunk/ChangeLog	2010-05-26 16:42:41 UTC (rev 2776)
@@ -1,5 +1,10 @@
 2010-05-26  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/controllers/privacy.py (PrivacyController.decline): Use
+	h.url_for consistently for all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/controllers/news.py (NewsController.hide): Use
 	h.url_for consistently for all-intra application URLs.
 

Modified: base/trunk/mpulsweb/controllers/privacy.py
===================================================================
--- base/trunk/mpulsweb/controllers/privacy.py	2010-05-26 16:35:35 UTC (rev 2775)
+++ base/trunk/mpulsweb/controllers/privacy.py	2010-05-26 16:42:41 UTC (rev 2776)
@@ -138,7 +138,8 @@
                         errors.append(v.msg)
                 c.dialog_title = MARKANONYMIZE_FAILED
                 c.dialog_text = MARKANONYMIZE_FAILED_TEXT % "<br>".join(errors) 
-                c.url_ok = h.url_for ('/case/select/%s/1' % case.id)
+                c.url_ok = h.url_for(controller='/case', action='select',
+                                     id=case.id, confirmed=1)
                 return render('/privacy/dialogs/decline_failed.mako')
 
         else:



More information about the Mpuls-commits mailing list