summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2e66710)
raw | patch | inline | side by side (parent: 2e66710)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 20 Feb 2003 07:13:14 +0000 (07:13 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 20 Feb 2003 07:13:14 +0000 (07:13 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1534 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi/client.py | patch | blob | history |
diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py
index 4726d7bfce11b91ffa83c82cb9145d935ed1ab9d..1f23faea242d87b281c686f1b7db7b4d5eda0b2e 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
-# $Id: client.py,v 1.95 2003-02-18 10:58:32 richard Exp $
+# $Id: client.py,v 1.96 2003-02-20 07:13:14 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
from roundup.cgi.PageTemplates import PageTemplate
-class Unauthorised(ValueError):
- pass
-
-class NotFound(ValueError):
- pass
-
-class Redirect(Exception):
+class HTTPException(Exception):
+ pass
+class Unauthorised(HTTPException):
+ pass
+class NotFound(HTTPException):
+ pass
+class Redirect(HTTPException):
+ pass
+
+# XXX actually _use_ FormError
+class FormError(ValueError):
+ ''' An "expected" exception occurred during form parsing.
+ - ie. something we know can go wrong, and don't want to alarm the
+ user with
+
+ We trap this at the user interface level and feed back a nice error
+ to the user.
+ '''
pass
class SendFile(Exception):
- ' Sent a file from the database '
+ ''' Send a file from the database '''
class SendStaticFile(Exception):
- ' Send a static file from the instance html directory '
+ ''' Send a static file from the instance html directory '''
def initialiseSecurity(security):
''' Create some Permissions and Roles on the security object