Ignore:
Timestamp:
10/07/12 15:15:27 (7 years ago)
Author:
mnagni
Message:

Complete - # 22489: CEDA Observation Collection - phenomenonTime
 http://team.ceda.ac.uk/trac/ceda/ticket/22489
Complete - # 22518: The description is broken
 http://team.ceda.ac.uk/trac/ceda/ticket/22518
Complete - # 22488: CEDA Observation Collection - Geographical Extent
 http://team.ceda.ac.uk/trac/ceda/ticket/22488

Now the Moles3EPB explicitly call the "synchronise" method in the SQLAlchemy mapped classes to assure the persistence of the data
Uses the CedaMolesModel? v 0.1.5 which correct a major problem in synchronise the instances with database

File:
1 edited

Legend:

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

    r8445 r8460  
    9999        pt = fromDateStringToPhenomenonTime(dateString) 
    100100         
    101         if ceda_observationCollection.phenomenonTime is not None \ 
     101        if pt is not None and ceda_observationCollection.phenomenonTime is not None \ 
    102102            and (len(ceda_observationCollection.phenomenonTime) == 0 \ 
    103103                 or (len(ceda_observationCollection.phenomenonTime) == 1 and \ 
     
    211211        try: 
    212212            DataEntityProcessor.log.info("Processing deployment: %s" % (migrationObjectDescription(deploymentMigration))) 
    213             ceda_observation = deProcessor.process()     
     213            obs_ex_report, ceda_observation = deProcessor.process() 
     214            self._report.extend(obs_ex_report) 
    214215            try:                             
    215216                self._processDOI(deploymentMigration, ceda_observation, deProcessor, single_deployment) 
     
    225226    def process(self): 
    226227        obsColl = None 
    227         exs = [] 
    228228        DataEntityProcessor.log.info("Processing dataEntity: %s" % (migrationObjectDescription(self._dataEntityMigration))) 
    229229        try : 
     
    252252        for deploymentMigration in deploymentMigrations: 
    253253            try: 
    254                 ceda_observation = self._processDeploymentMigration(deploymentMigration, howManydm == 1) 
     254                ceda_observation = self._processDeploymentMigration(deploymentMigration, howManydm == 1)                 
    255255                #Is a first time process? 
    256256                if not self.epbRepo.moles3EPB.observationCollectionHasObservation(getattr(obsColl, 'id'), getattr(ceda_observation, 'id')): 
Note: See TracChangeset for help on using the changeset viewer.