Changeset 2602

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

Delete empty datatypes from the list of datatypes to dump

Files:
1 modified

Legend:

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

    r2601 r2602  
    125125                          "billingcodes", "umembers", "upquotas", \ 
    126126                          "gpquotas", "payments", "history" ] 
     127            neededdatatypes = datatypes[:]               
    127128            for datatype in datatypes : 
    128129                entries = getattr(self.storage, "extract%s" % datatype.title())(extractonly) 
     
    130131                    nbentries += len(entries) 
    131132                    allentries.append(entries) 
    132             retcode = self.dumpXml(allentries, datatypes) 
    133                           
     133                else :     
     134                    neededdatatypes.remove(datatype) 
     135            retcode = self.dumpXml(allentries, neededdatatypes) 
    134136        else :     
    135137            entries = getattr(self.storage, "extract%s" % datatype.title())(extractonly)