Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 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 | 52d77d3be040 |
| children | 0bbe74ce51d0 |
line wrap: on
line diff
--- 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)
