Mercurial > p > roundup > code
changeset 119:ad64dade1769
Fixed problem in link display when Link value is None.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 29 Jul 2001 04:06:42 +0000 |
| parents | a55c1301ba1f |
| children | e8087fc26fee |
| files | roundup/htmltemplate.py |
| diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/htmltemplate.py Sun Jul 29 04:05:37 2001 +0000 +++ b/roundup/htmltemplate.py Sun Jul 29 04:06:42 2001 +0000 @@ -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 @@ 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 @@ # # $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
