示例#1
0
文件: base.py 项目: arturodr/indico
    def _processFormValuesError(self, e):
        """Treats user input related errors occured during the process of a RH.
        """

        Logger.get('requestHandler').info(
            'Request %s finished with FormValuesError: "%s"' %
            (id(self._req), e))

        p = errors.WPFormValuesError(self, e)
        return p.display()
示例#2
0
    def _processFormValuesError(self, e):
        """Treats user input related errors occured during the process of a RH."""

        return errors.WPFormValuesError(self, e).display()
示例#3
0
 def _processBadRequestKeyError(self, e):
     """Request lacks a necessary key for processing"""
     msg = _('Required argument missing: %s') % e.message
     return errors.WPFormValuesError(self, msg).display()