Changeset 2294 for pykota

Show
Ignore:
Timestamp:
06/08/05 22:01:28 (19 years ago)
Author:
jerome
Message:

Adds a pass to use original values for uninteresting fields

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/dumper.py

    r2293 r2294  
    155155                        for k in totals.keys() :     
    156156                            summary[fieldnumber[k]] = totals[k]["convert"](totals[k]["value"]) 
     157                        for i in range(nbheaders) :     
     158                            if summary[i] is None : 
     159                                summary[i] = entry[i] 
    157160                        newentries.append(summary) 
    158161                        for k in totals.keys() :     
     
    168171                for k in totals.keys() :     
    169172                    summary[fieldnumber[k]] = totals[k]["convert"](totals[k]["value"]) 
     173                for i in range(nbheaders) :     
     174                    if summary[i] is None : 
     175                        summary[i] = entry[i] 
    170176                newentries.append(summary) 
    171177            elif datatype == "history" :