Code

don't insert spaces into designators, it just confuses users (sf bug 898087)
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 16 Feb 2004 21:13:04 +0000 (21:13 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 16 Feb 2004 21:13:04 +0000 (21:13 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2094 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup/cgi/templating.py

index 490c048eef474707dfc24ccc7925d62c4bfb787b..08fe681b3eb1ebc6b5aa43691e0164aee4df62ac 100644 (file)
@@ -69,8 +69,12 @@ Cleanup:
   * exceptions.py - all exceptions
   * form_parser.py - parsePropsFromForm & extractFormList in a FormParser class
 
+2004-??-?? 0.6.6
+Fixed:
+- don't insert spaces into designators, it just confuses users (sf bug 898087)
+
 
-2004-??-?? 0.6.5
+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
index a2cc1843634de3ccc02392268dd0d7583fdab3a7..f91d65a6721f441aac459876629f908e9402123d 100644 (file)
@@ -961,8 +961,10 @@ class StringHTMLProperty(HTMLProperty):
             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)