diff roundup/cgi/templating.py @ 1370:52ef206a483b

oops
author Richard Jones <richard@users.sourceforge.net>
date Mon, 13 Jan 2003 03:32:02 +0000
parents 8edc52f5ceae
children 8e4c3e8de96f
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Mon Jan 13 03:26:28 2003 +0000
+++ b/roundup/cgi/templating.py	Mon Jan 13 03:32:02 2003 +0000
@@ -522,7 +522,8 @@
                 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,

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