Skip to content

Commit a824491

Browse files
author
Richard Jones
committed
Fixed grouping of non-str properties (thanks Roch'e Compaan)
1 parent 56ad4e9 commit a824491

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
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: htmltemplate.py,v 1.26 2001-10-14 10:55:00 richard Exp $
18+
# $Id: htmltemplate.py,v 1.27 2001-10-20 12:13:44 richard Exp $
1919

2020
import os, re, StringIO, urllib, cgi, errno
2121

@@ -569,6 +569,8 @@ def index(client, templates, db, classname, filterspec={}, filter=[],
569569
value = cl.get(nodeid, name)
570570
if value is None:
571571
value = '[empty %s]'%name
572+
else:
573+
value = str(value)
572574
l.append(value)
573575
w('<tr class="section-bar">'
574576
'<td align=middle colspan=%s><strong>%s</strong></td></tr>'%(
@@ -756,6 +758,9 @@ def newitem(client, templates, db, classname, form, replace=re.compile(
756758

757759
#
758760
# $Log: not supported by cvs2svn $
761+
# Revision 1.26 2001/10/14 10:55:00 richard
762+
# Handle empty strings in HTML template Link function
763+
#
759764
# Revision 1.25 2001/10/09 07:25:59 richard
760765
# Added the Password property type. See "pydoc roundup.password" for
761766
# implementation details. Have updated some of the documentation too.

0 commit comments

Comments
 (0)