web/application.py
changeset 8556 bbe0d6985e59
parent 8470 a85e107947e6
child 8560 fef0b8214fcf
equal deleted inserted replaced
8555:c747242d22a6 8556:bbe0d6985e59
   509         assert 300 <= ex.status < 400
   509         assert 300 <= ex.status < 400
   510         req.status_out = ex.status
   510         req.status_out = ex.status
   511         return ''
   511         return ''
   512 
   512 
   513     def validation_error_handler(self, req, ex):
   513     def validation_error_handler(self, req, ex):
   514         ex.errors = dict((k, v) for k, v in ex.errors.items())
   514         ex.tr(req._) # translate messages using ui language
   515         if '__errorurl' in req.form:
   515         if '__errorurl' in req.form:
   516             forminfo = {'error': ex,
   516             forminfo = {'error': ex,
   517                         'values': req.form,
   517                         'values': req.form,
   518                         'eidmap': req.data.get('eidmap', {})
   518                         'eidmap': req.data.get('eidmap', {})
   519                         }
   519                         }