diff roundup/cgi/templating.py @ 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 4511fd6c5dbf
line wrap: on
line diff
--- 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/