equal
deleted
inserted
replaced
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 } |