示例#1
0
文件: base.py 项目: arturodr/indico
    def _processNoReportError(self, e):
        """Process errors without reporting
        """

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

        p = errors.WPNoReportError(self, e)
        return p.display()
示例#2
0
文件: base.py 项目: arturodr/indico
    def _processNotFoundError(self, e):
        """Process not found error; uses NoReportError template
        """

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

        try:
            self._req.status = apache.HTTP_NOT_FOUND
        except NameError:
            pass

        p = errors.WPNoReportError(self, e)
        return p.display()
示例#3
0
    def _processNoReportError(self, e):
        """Process errors without reporting"""

        return errors.WPNoReportError(self, e).display()