Mercurial > p > roundup > code
diff roundup/cgi/exceptions.py @ 4083:bbab97f8ffb2
XMLRPC improvements:
* Add support for actions to XMLRPC interface.
* Provide bridge so user actions may be executed
either via CGI or XMLRPC.
* Adjust XMLRPC tests to recent work.
* Cleanup.
| author | Stefan Seefeld <stefan@seefeld.name> |
|---|---|
| date | Fri, 27 Feb 2009 17:46:47 +0000 |
| parents | df4a3355ee8f |
| children | 65fef7858606 |
line wrap: on
line diff
--- a/roundup/cgi/exceptions.py Fri Feb 27 16:15:33 2009 +0000 +++ b/roundup/cgi/exceptions.py Fri Feb 27 17:46:47 2009 +0000 @@ -1,20 +1,14 @@ -#$Id: exceptions.py,v 1.6 2004-11-18 14:10:27 a1s Exp $ -'''Exceptions for use in Roundup's web interface. -''' +"""Exceptions for use in Roundup's web interface. +""" __docformat__ = 'restructuredtext' +from roundup.exceptions import LoginError, Unauthorised import cgi class HTTPException(Exception): pass -class LoginError(HTTPException): - pass - -class Unauthorised(HTTPException): - pass - class Redirect(HTTPException): pass @@ -50,13 +44,13 @@ escaped. """ def __str__(self): - return ''' + return """ <html><head><title>Roundup issue tracker: An error has occurred</title> <link rel="stylesheet" type="text/css" href="@@file/style.css"> </head> <body class="body" marginwidth="0" marginheight="0"> <p class="error-message">%s</p> </body></html> -'''%cgi.escape(self.args[0]) +"""%cgi.escape(self.args[0]) # vim: set filetype=python sts=4 sw=4 et si :
