comparison roundup/cgi/exceptions.py @ 2924:df4a3355ee8f

added LoginError; fix vim modeline
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Thu, 18 Nov 2004 14:10:27 +0000
parents 93bd8c4d43ef
children bbab97f8ffb2
comparison
equal deleted inserted replaced
2923:29563959c026 2924:df4a3355ee8f
1 #$Id: exceptions.py,v 1.5 2004-05-11 13:03:07 a1s Exp $ 1 #$Id: exceptions.py,v 1.6 2004-11-18 14:10:27 a1s Exp $
2 '''Exceptions for use in Roundup's web interface. 2 '''Exceptions for use in Roundup's web interface.
3 ''' 3 '''
4 4
5 __docformat__ = 'restructuredtext' 5 __docformat__ = 'restructuredtext'
6 6
7 import cgi 7 import cgi
8 8
9 class HTTPException(Exception): 9 class HTTPException(Exception):
10 pass
11
12 class LoginError(HTTPException):
10 pass 13 pass
11 14
12 class Unauthorised(HTTPException): 15 class Unauthorised(HTTPException):
13 pass 16 pass
14 17
54 <body class="body" marginwidth="0" marginheight="0"> 57 <body class="body" marginwidth="0" marginheight="0">
55 <p class="error-message">%s</p> 58 <p class="error-message">%s</p>
56 </body></html> 59 </body></html>
57 '''%cgi.escape(self.args[0]) 60 '''%cgi.escape(self.args[0])
58 61
59 # vim: set filetype=python ts=4 sw=4 et si 62 # vim: set filetype=python sts=4 sw=4 et si :

Roundup Issue Tracker: http://roundup-tracker.org/