Changeset 8363 for mauRepo


Ignore:
Timestamp:
20/06/12 11:47:08 (7 years ago)
Author:
mnagni
Message:

Fixed some "None" errors

Location:
mauRepo/MolesManager/trunk/src/libs/migration
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/libs/migration/processor/dataEntity.py

    r8361 r8363  
    169169        deploymentMigrations = self.epbRepo.migrationEPB.getAllDeploymentsMigrationByDataEntitySortedByDate( \ 
    170170                                                self._dataEntityMigration, deploymentsLinks) 
     171     
     172        if deploymentMigrations is None or len(deploymentMigrations) == 0: 
     173            return exs 
     174         
    171175        howManydm = 0 
    172176        if deploymentMigrations: 
  • mauRepo/MolesManager/trunk/src/libs/migration/tests/migrationprocess.py

    r8362 r8363  
    8888         
    8989        #Has 3 DOI 
    90         self.processDataEntity(DO_BADC, DS_pUBLISHED, 'dataent_chobs.atom') 
     90        #self.processDataEntity(DO_BADC, DS_pUBLISHED, 'dataent_chobs.atom') 
    9191         
    9292        #IASI 
    93         self.processDataEntity(DO_NEODC, DS_pUBLISHED, 'dataent_12417810458627666.atom') 
    94         self.processDataEntity(DO_BADC, DS_pUBLISHED, 'dataent_VIRTEM.atom') 
    95         self.processDataEntity(DO_BADC, DS_pUBLISHED, 'dataent_12162569915925921.atom') 
     93        #self.processDataEntity(DO_NEODC, DS_pUBLISHED, 'dataent_12417810458627666.atom') 
     94        #self.processDataEntity(DO_BADC, DS_pUBLISHED, 'dataent_VIRTEM.atom') 
     95        #self.processDataEntity(DO_BADC, DS_pUBLISHED, 'dataent_12162569915925921.atom') 
    9696               
    9797        #ECMWF 
    98         self.processDataEntity(DO_BADC, DS_pUBLISHED, 'dataent_ECMWF-ERA.atom') 
    99         self.processDataEntity(DO_BADC, DS_pUBLISHED, 'dataent_ECMWF-OP.atom') 
     98        #self.processDataEntity(DO_BADC, DS_pUBLISHED, 'dataent_ECMWF-ERA.atom') 
     99        #self.processDataEntity(DO_BADC, DS_pUBLISHED, 'dataent_ECMWF-OP.atom') 
    100100        self.processDataEntity(DO_BADC, DS_pUBLISHED, 'dataent_12458543158227759.atom')                 
    101101        self.processDataEntity(DO_BADC, DS_pUBLISHED, 'dataent_ECMWF-E40.atom') 
Note: See TracChangeset for help on using the changeset viewer.