summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d712a87)
raw | patch | inline | side by side (parent: d712a87)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 13 Jan 2003 03:32:02 +0000 (03:32 +0000) | ||
committer | richard <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 | patch | blob | history |
index 709984626ee2df65ec240c629d24dd3e08807ad3..701770176013ed2eeed78bf20b5dde19c9d73319 100644 (file)
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,