Update of /cvsroot/jtoolkit/jToolkit/widgets
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27358
Modified Files:
grid.py
Log Message:
Number grid handles nulls
Index: grid.py
===================================================================
RCS file: /cvsroot/jtoolkit/jToolkit/widgets/grid.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** grid.py 10 Feb 2004 09:14:44 -0000 1.11
--- grid.py 10 Feb 2004 09:16:45 -0000 1.12
***************
*** 307,311 ****
"""A grid category that handles numbers"""
def valuetostring(self, value):
! if self.storageformat in ['DECIMAL', 'DOUBLE']:
return "%.3f" % value
else:
--- 307,311 ----
"""A grid category that handles numbers"""
def valuetostring(self, value):
! if self.storageformat in ['DECIMAL', 'DOUBLE'] and value is not None:
return "%.3f" % value
else:
|