Mercurial > p > roundup > code
changeset 2026:bf876bb5c19b maint-0.6
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 16 Feb 2004 21:16:33 +0000 |
| parents | b939c3e78614 |
| children | 39e8b9e24aff |
| files | CHANGES.txt roundup/cgi/templating.py |
| diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Sun Feb 15 23:27:44 2004 +0000 +++ b/CHANGES.txt Mon Feb 16 21:16:33 2004 +0000 @@ -1,7 +1,12 @@ This file contains the changes to the Roundup system over time. The entries are given with the most recent entry first. -2004-??-?? 0.6.5 +2004-??-?? 0.6.6 +Fixed: +- don't insert spaces into designators, it just confuses users (sf bug 898087) + + +2004-02-16 0.6.5 Fixed: - mailgw handling of subject-line errors - allow serving of FileClass file content when the class isn't called
--- a/roundup/cgi/templating.py Sun Feb 15 23:27:44 2004 +0000 +++ b/roundup/cgi/templating.py Mon Feb 16 21:16:33 2004 +0000 @@ -869,8 +869,10 @@ s2 = match.group('id') try: # make sure s1 is a valid tracker classname - self._db.getclass(s1) - return '<a href="%s">%s %s</a>'%(s, s1, s2) + cl = self._db.getclass(s1) + if not cl.hasnode(s2): + raise KeyError, 'oops' + return '<a href="%s">%s%s</a>'%(s, s1, s2) except KeyError: return '%s%s'%(s1, s2)
