From 3c84f4b32a50b9c0c6bd6c14638c02eab4f51a79 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 16 Feb 2004 21:13:04 +0000 Subject: [PATCH] don't insert spaces into designators, it just confuses users (sf bug 898087) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2094 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 6 +++++- roundup/cgi/templating.py | 6 ++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 490c048..08fe681 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index a2cc184..f91d65a 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -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 '%s %s'%(s, s1, s2) + cl = self._db.getclass(s1) + if not cl.hasnode(s2): + raise KeyError, 'oops' + return '%s%s'%(s, s1, s2) except KeyError: return '%s%s'%(s1, s2) -- 2.30.2