diff options
author | Simo Sorce <simo@redhat.com> | 2014-02-23 18:41:13 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-02-24 21:54:57 -0500 |
commit | 953a4e418b1bdcbfddaf52d27a4cba9e9d8062e5 (patch) | |
tree | 8265f5fe966797619330622b04266a5941a54ba0 /ipsilon/util/errors.py | |
parent | eaad8751cf92a29a7ab398c6b20e96d4a53b9d69 (diff) | |
download | ipsilon.git-953a4e418b1bdcbfddaf52d27a4cba9e9d8062e5.tar.gz ipsilon.git-953a4e418b1bdcbfddaf52d27a4cba9e9d8062e5.tar.xz ipsilon.git-953a4e418b1bdcbfddaf52d27a4cba9e9d8062e5.zip |
Initial SAML2 provider
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/util/errors.py')
-rwxr-xr-x | ipsilon/util/errors.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ipsilon/util/errors.py b/ipsilon/util/errors.py index 16b7c70..3d7ea28 100755 --- a/ipsilon/util/errors.py +++ b/ipsilon/util/errors.py @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. from ipsilon.util.page import Page -import cherrypy + class Errors(Page): @@ -34,8 +34,10 @@ class Errors(Page): def handler(self, status, message, traceback, version): self._debug(repr([status, message, traceback, version])) - return self._error_template('internalerror.html', title='Internal Error') + return self._error_template('internalerror.html', + title='Internal Error') + # pylint: disable=W0221 def __call__(self, status, message, traceback, version): return self.handler(status, message, traceback, version) @@ -46,6 +48,7 @@ class Error_400(Errors): return self._error_template('badrequest.html', title='Bad Request', message=message) + class Error_401(Errors): def handler(self, status, message, traceback, version): |