Skip to content

Commit 6122c80

Browse files
author
Richard Jones
committed
NumberHTMLProperty should return "" not "None" if not set
1 parent 2fe1995 commit 6122c80

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ Fixed:
5555
- don't wrap query.item.html in a <span> (thanks Roch'e Compaan)
5656
- TAL expressions like 'request/show/whatever' return True
5757
if the request does not contain explicit @columns list
58+
- NumberHTMLProperty should return '' not "None" if not set (thanks
59+
William)
5860

5961

6062
2004-10-15 0.7.8

roundup/cgi/templating.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,9 @@ def plain(self):
12591259
'''
12601260
self.view_check()
12611261

1262+
if self._value is None:
1263+
return ''
1264+
12621265
return str(self._value)
12631266

12641267
def field(self, size = 30):

0 commit comments

Comments
 (0)