web/views/basecontrollers.py
branchstable
changeset 6107 05061eda1fa7
parent 5940 0e3ae19b181a
child 6109 47d9c0e0f7b7
--- a/web/views/basecontrollers.py	Thu Aug 12 16:50:52 2010 +0200
+++ b/web/views/basecontrollers.py	Thu Aug 12 18:49:20 2010 +0200
@@ -221,7 +221,7 @@
         except Exception, ex:
             req.cnx.rollback()
             req.exception('unexpected error while validating form')
-            return (False, req._(str(ex).decode('utf-8')), ctrl._edited_entity)
+            return (False, str(ex).decode('utf-8'), ctrl._edited_entity)
         else:
             # complete entity: it can be used in js callbacks where we might
             # want every possible information
@@ -231,7 +231,7 @@
     except Exception, ex:
         req.cnx.rollback()
         req.exception('unexpected error while validating form')
-        return (False, req._(str(ex).decode('utf-8')), ctrl._edited_entity)
+        return (False, str(ex).decode('utf-8'), ctrl._edited_entity)
     return (False, '???', None)