From 0de467c34d61f65bf129155a4969591e6c04a115 Mon Sep 17 00:00:00 2001 From: richard Date: Sun, 29 Jul 2001 04:06:42 +0000 Subject: [PATCH] Fixed problem in link display when Link value is None. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@125 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/htmltemplate.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roundup/htmltemplate.py b/roundup/htmltemplate.py index c7075b3..f39a72b 100644 --- a/roundup/htmltemplate.py +++ b/roundup/htmltemplate.py @@ -1,4 +1,4 @@ -# $Id: htmltemplate.py,v 1.5 2001-07-28 08:17:09 richard Exp $ +# $Id: htmltemplate.py,v 1.6 2001-07-29 04:06:42 richard Exp $ import os, re, StringIO, urllib, cgi, errno @@ -238,6 +238,8 @@ class Link(Base): if propclass.isMultilinkType: value = [] else: value = '' if propclass.isLinkType: + if value is None: + return '[not assigned]' linkcl = self.db.classes[propclass.classname] k = linkcl.getkey() # if the linked-to class doesn't have a key property, then try @@ -795,6 +797,9 @@ def newitem(client, templates, db, classname, form, replace=re.compile( # # $Log: not supported by cvs2svn $ +# Revision 1.5 2001/07/28 08:17:09 richard +# fixed use of stylesheet +# # Revision 1.4 2001/07/28 07:59:53 richard # Replaced errno integers with their module values. # De-tabbed templatebuilder.py -- 2.30.2