/[gnue]/gnue-reports/src/base/GRDataMapper.py
ViewVC logotype

Diff of /gnue-reports/src/base/GRDataMapper.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by jcater, Mon Feb 17 07:32:54 2003 UTC revision 1.23 by jamest, Mon Sep 15 19:14:02 2003 UTC
# Line 32  Line 32 
32  import GRExceptions  import GRExceptions
33  from gnue.common.apps import GDebug  from gnue.common.apps import GDebug
34  from gnue.common.formatting import GDataFormatter  from gnue.common.formatting import GDataFormatter
35    from gnue.common.external.fixedpoint import FixedPoint
36  import types, string  import types, string
37    
38    
# Line 209  class GRDataMapperSection: Line 210  class GRDataMapperSection:
210    def _summ_sum(self, field, value):    def _summ_sum(self, field, value):
211      if type(value) in _numericTypes:      if type(value) in _numericTypes:
212        try:        try:
213          self.summaries[field]['sum'] += value          self.summaries[field]['sum'] += FixedPoint(value)
214        except TypeError:        except TypeError:
215          self.summaries[field]['sum'] = value          self.summaries[field]['sum'] = FixedPoint(value)
216      else:      else:
217        raise "Attempting to 'sum' a non-numeric field %s" % (field)        raise "Attempting to 'sum' a non-numeric field %s" % (field)
218    

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26