[Mpuls-commits] r2488 - wasko/branches/2.0/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Apr 22 15:05:57 CEST 2010


Author: torsten
Date: 2010-04-22 15:05:56 +0200 (Thu, 22 Apr 2010)
New Revision: 2488

Modified:
   wasko/branches/2.0/mpulsweb/controllers/case.py
Log:
Do not escape in errror messages for anonymization


Modified: wasko/branches/2.0/mpulsweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/case.py	2010-04-22 13:03:48 UTC (rev 2487)
+++ wasko/branches/2.0/mpulsweb/controllers/case.py	2010-04-22 13:05:56 UTC (rev 2488)
@@ -150,7 +150,7 @@
             case.check_anonymizeability()
         except ConsistenceCheckException, e:
             c.dialog_title = MARKANONYMIZE_FAILED
-            c.dialog_text = e.value
+            c.dialog_text = h.literal(e.value)
             c.url_ok = url
             return render('/casemanagement/dialogs/failed_markanonymize.mako')
         # Ok, show confirmation dialog if the user really wants to anonymize the
@@ -187,7 +187,7 @@
             case.check_anonymizeability()
         except ConsistenceCheckException, e:
             c.dialog_title = MARKANONYMIZE_FAILED
-            c.dialog_text = e.value
+            c.dialog_text = h.literal(e.value)
             c.url_ok = "/case/digest/%s" % id
             return render('/casemanagement/dialogs/failed_markanonymize.mako')
 



More information about the Mpuls-commits mailing list