diff roundup/cgi/templating.py @ 3096:f175dcd1ad47 maint-0.7

handle capitalisation of class names in text hyperlinking [SF#1101043]
author Richard Jones <richard@users.sourceforge.net>
date Thu, 13 Jan 2005 04:44:15 +0000
parents 171b14d46bc3
children 427e3aee2113
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Sat Jan 08 15:02:23 2005 +0000
+++ b/roundup/cgi/templating.py	Thu Jan 13 04:44:15 2005 +0000
@@ -1073,11 +1073,11 @@
             return '<a href="mailto:%s">%s</a>'%(s, s)
         else:
             s = match.group('item')
-            s1 = match.group('class')
+            s1 = match.group('class').lower()
             s2 = match.group('id')
             try:
                 # make sure s1 is a valid tracker classname
-                cl = self._db.getclass(s1.lower())
+                cl = self._db.getclass(s1)
                 if not cl.hasnode(s2):
                     raise KeyError, 'oops'
                 return '<a href="%s%s">%s</a>'%(s1, s2, s)

Roundup Issue Tracker: http://roundup-tracker.org/