Code

oops
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 13 Jan 2003 03:32:02 +0000 (03:32 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 13 Jan 2003 03:32:02 +0000 (03:32 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1446 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/templating.py

index 709984626ee2df65ec240c629d24dd3e08807ad3..701770176013ed2eeed78bf20b5dde19c9d73319 100644 (file)
@@ -522,7 +522,8 @@ class HTMLItem(HTMLPermissions):
                 if isinstance(prop, HTMLProperty):
                     current[prop_n] = prop.plain()
                     # make link if hrefable
-                    if isinstance(self._props[prop_n], hyperdb.Link):
+                    if (self._props.has_key(prop_n) and
+                            isinstance(self._props[prop_n], hyperdb.Link)):
                         classname = self._props[prop_n].classname
                         if os.path.exists(os.path.join(self._db.config.TEMPLATES, classname + '.item')):
                             current[prop_n] = '<a href="%s%s">%s</a>'%(classname,