Changeset 8361 for mauRepo


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

Regression bug. Did not append Observation to ObservationCollection?.member

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

Legend:

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

    r8358 r8361  
    178178                ceda_observation = self._processDeploymentMigration(deploymentMigration, howManydm == 1) 
    179179                #Is a first time process? 
    180                 if not hasMOBeenProcessed(deploymentMigration): 
     180                if not self.epbRepo.moles3EPB.observationCollectionHasObservation(getattr(obsColl, 'id'), getattr(ceda_observation, 'id')): 
    181181                    self.epbRepo.moles3EPB.updateCedaObject(obsColl, {'member': ceda_observation}) 
    182182                                       
  • mauRepo/MolesManager/trunk/src/libs/migration/processor/migrationProcess.py

    r8358 r8361  
    6262             
    6363        #loops over the data entities 
    64         for dataEntityMigration in data_ents:                          
     64        for dataEntityMigration in data_ents: 
     65            if dataEntityMigration is None: 
     66                continue                          
    6567            dep = DataEntityProcessor(dataEntityMigration, self.epbRepo)             
    6668            exs.extend(dep.process()) 
Note: See TracChangeset for help on using the changeset viewer.