Changeset 2601

Show
Ignore:
Timestamp:
12/02/05 09:13:47 (19 years ago)
Author:
jerome
Message:

No need to dump a particular datatype if it is empty

Files:
1 modified

Legend:

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

    r2600 r2601  
    127127            for datatype in datatypes : 
    128128                entries = getattr(self.storage, "extract%s" % datatype.title())(extractonly) 
    129                 nbentries += len(entries) 
    130                 allentries.append(entries) 
     129                if entries : 
     130                    nbentries += len(entries) 
     131                    allentries.append(entries) 
    131132            retcode = self.dumpXml(allentries, datatypes) 
    132133