changeset 2884:6d6fdd1daf92

NumberHTMLProperty should return "" not "None" if not set
author Richard Jones <richard@users.sourceforge.net>
date Sun, 07 Nov 2004 23:18:58 +0000
parents 1ca5ebe9b16a
children 0998d1b48182
files CHANGES.txt roundup/cgi/templating.py
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Sun Nov 07 21:43:50 2004 +0000
+++ b/CHANGES.txt	Sun Nov 07 23:18:58 2004 +0000
@@ -55,6 +55,8 @@
 - don't wrap query.item.html in a <span> (thanks Roch'e Compaan)
 - TAL expressions like 'request/show/whatever' return True
   if the request does not contain explicit @columns list
+- NumberHTMLProperty should return '' not "None" if not set (thanks
+  William)
 
 
 2004-10-15 0.7.8
--- a/roundup/cgi/templating.py	Sun Nov 07 21:43:50 2004 +0000
+++ b/roundup/cgi/templating.py	Sun Nov 07 23:18:58 2004 +0000
@@ -1259,6 +1259,9 @@
         '''
         self.view_check()
 
+        if self._value is None:
+            return ''
+
         return str(self._value)
 
     def field(self, size = 30):

Roundup Issue Tracker: http://roundup-tracker.org/