[Mpuls-commits] r6069 - base/trunk/mpulsweb/controllers

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Wed Sep 19 10:41:36 CEST 2012


Author: torsten
Date: 2012-09-19 10:41:36 +0200 (Wed, 19 Sep 2012)
New Revision: 6069

Modified:
   base/trunk/mpulsweb/controllers/settings.py
Log:
Fixed unicode error. Do not convert message-text of the exception to str as it
might have umlauts.


Modified: base/trunk/mpulsweb/controllers/settings.py
===================================================================
--- base/trunk/mpulsweb/controllers/settings.py	2012-09-14 08:23:22 UTC (rev 6068)
+++ base/trunk/mpulsweb/controllers/settings.py	2012-09-19 08:41:36 UTC (rev 6069)
@@ -59,7 +59,7 @@
         except formencode.Invalid, error:
             c.form_result = error.value
             c.form_errors = error.error_dict or {}
-            c.form_error_msg = str(error)
+            c.form_error_msg = error
             form = render('/settings/edit.mako')
             return formencode.htmlfill.render(form,
                                               defaults=c.form_result,



More information about the Mpuls-commits mailing list