Пример #1
0
    def _processKeyAccessError(self, e):
        """Treats access errors occured during the process of a RH."""

        # We are going to redirect to the page asking for access key
        # and so it must be https if there is a BaseSecureURL. And that's
        # why we set _tohttps to True.
        self._tohttps = True
        if self._checkHttpsRedirect():
            return
        return errors.WPKeyAccessError(self).display()
Пример #2
0
    def _processKeyAccessError(self, e):
        """Treats access errors occured during the process of a RH.
        """
        Logger.get('requestHandler').info(
            'Request %s finished with KeyAccessError: "%s"' %
            (id(self._req), e))

        # We are going to redirect to the page asking for access key
        # and so it must be https if there is a BaseSecureURL. And that's
        # why we set _tohttps to True.
        self._tohttps = True
        if self._checkHttpsRedirect():
            return
        p = errors.WPKeyAccessError(self)
        return p.display()