Skip to content

Commit d65e357

Browse files
author
Richard Jones
committed
Fixed problem in link display when Link value is None.
1 parent 3b74db8 commit d65e357

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

roundup/htmltemplate.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: htmltemplate.py,v 1.5 2001-07-28 08:17:09 richard Exp $
1+
# $Id: htmltemplate.py,v 1.6 2001-07-29 04:06:42 richard Exp $
22

33
import os, re, StringIO, urllib, cgi, errno
44

@@ -238,6 +238,8 @@ def __call__(self, property=None, **args):
238238
if propclass.isMultilinkType: value = []
239239
else: value = ''
240240
if propclass.isLinkType:
241+
if value is None:
242+
return '[not assigned]'
241243
linkcl = self.db.classes[propclass.classname]
242244
k = linkcl.getkey()
243245
# 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(
795797

796798
#
797799
# $Log: not supported by cvs2svn $
800+
# Revision 1.5 2001/07/28 08:17:09 richard
801+
# fixed use of stylesheet
802+
#
798803
# Revision 1.4 2001/07/28 07:59:53 richard
799804
# Replaced errno integers with their module values.
800805
# De-tabbed templatebuilder.py

0 commit comments

Comments
 (0)