summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96db8ee)
raw | patch | inline | side by side (parent: 96db8ee)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 17 Oct 2002 06:11:25 +0000 (06:11 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 17 Oct 2002 06:11:25 +0000 (06:11 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1362 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/cgi/client.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 99d52535968c98d681de3d123cfbf82a27805c2d..55a89b7ed34f555c5c06551b1c50a7ea628b9df3 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
2002-10-?? 0.5.2
- added quotes around python interpreter in windows bat (sf bug 623963)
- fixed link at end of installation doc (sf bug 623957)
+- handle "classname" URL path errors cleaner (generate a 404)
2002-10-16 0.5.1
diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py
index c01fc9942b573f9a45b7bbd45331a2bb4d3ab891..03eaf1102c14436c9cc85723a02b60bf95d037b9 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
-# $Id: client.py,v 1.53 2002-10-15 06:37:21 richard Exp $
+# $Id: client.py,v 1.54 2002-10-17 06:11:25 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
# with only a class, we default to index view
self.template = 'index'
+ # make sure the classname is valid
+ try:
+ self.db.getclass(self.classname)
+ except KeyError:
+ raise NotFound, self.classname
+
# see if we have a template override
if self.form.has_key(':template'):
self.template = self.form[':template'].value