コード例 #1
0
 def _processModificationError(self, e):
     """Handles modification errors occured during the process of a RH."""
     # Redirect to HTTPS in case the user is logged in
     self._tohttps = True
     if self._checkHttpsRedirect():
         return
     return errors.WPModificationError(self).display()
コード例 #2
0
ファイル: base.py プロジェクト: nyimbi/indico
 def _processModificationError(self, e):
     """Handles modification errors occured during the process of a RH."""
     # Redirect to HTTPS in case the user is logged in
     self._tohttps = True
     if self._checkHttpsRedirect():
         return
     if not session.user:
         return redirect_to_login(reason=_("Please log in to access this page. If you have a modification key, you "
                                           "may enter it afterwards."))
     return errors.WPModificationError(self).display()
コード例 #3
0
ファイル: base.py プロジェクト: arturodr/indico
    def _processModificationError(self, e):
        """Treats modification errors occured during the process of a RH.
        """

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

        p = errors.WPModificationError(self)
        return p.display()