Mercurial > p > roundup > code
changeset 2057:d26e577f8a85 maint-0.6
backport from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 27 Feb 2004 00:42:46 +0000 |
| parents | e99367f7c11a |
| children | e7191f6d8db6 |
| files | CHANGES.txt roundup/cgi/templating.py |
| diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Thu Feb 26 22:20:43 2004 +0000 +++ b/CHANGES.txt Fri Feb 27 00:42:46 2004 +0000 @@ -8,6 +8,7 @@ - made errors from bad input in the quick "Show issue:" form more user-friendly (sf bug 904064) - don't add a query to a user's list if it's already there +- nicer invalid property error in HTML templating 2004-02-25 0.6.6
--- a/roundup/cgi/templating.py Thu Feb 26 22:20:43 2004 +0000 +++ b/roundup/cgi/templating.py Fri Feb 27 00:42:46 2004 +0000 @@ -310,7 +310,10 @@ return None # get the property - prop = self._props[item] + try: + prop = self._props[item] + except KeyError: + raise KeyError, 'No such property "%s" on %s'%(item, self.classname) # look up the correct HTMLProperty class form = self._client.form
