From: richard Date: Mon, 13 Jan 2003 03:32:02 +0000 (+0000) Subject: oops X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ebe7b52958079853ba2ff7f9c8fac72d60b09b09;p=roundup.git oops git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1446 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 7099846..7017701 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -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] = '%s'%(classname,