From ebe7b52958079853ba2ff7f9c8fac72d60b09b09 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 13 Jan 2003 03:32:02 +0000 Subject: [PATCH] oops git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1446 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/templating.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.30.2