Changeset 8209 for mauRepo


Ignore:
Timestamp:
03/04/12 07:56:40 (8 years ago)
Author:
mnagni
Message:

Complete - # 22423: CEDA Project - publicationState
 http://team.ceda.ac.uk/trac/ceda/ticket/22423

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

Legend:

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

    r8208 r8209  
    828828    return ceda_acquisition 
    829829 
    830 def createCEDA_Project(abstract = None): 
     830def createCEDA_Project(abstract = None, publication_state = None): 
    831831    ceda_project = CEDA_Project() 
    832832    if abstract: 
    833833        ceda_project.abstract = abstract  
     834    if publication_state: 
     835        ceda_project.publicationState = publication_state         
    834836    return ceda_project     
  • mauRepo/MolesManager/trunk/src/libs/migration/processor/deployment_data.py

    r8208 r8209  
    1010from libs.migration.MigrationEPB import MigrationEPB 
    1111from MolesManager.moles3epb import Moles3EPB 
     12from ea_model.moles3_4.utilities.mo_publicationstatevalue import MO_PublicationStateValue 
    1213 
    1314class DeploymentDataProcessor(object): 
     
    2829                activity = MigrationEPB.getDeploymentDataMigrationByName(self._deploymentMigration, link + '.atom', self._migrationSessions.migrationSession) 
    2930                i_abstract = findSummary(activity) 
    30                 project = createCEDA_Project(abstract=i_abstract) 
     31                project = createCEDA_Project(abstract=i_abstract, publication_state=MO_PublicationStateValue.cl_working) 
    3132                self._commitDeploymentMigration(project, activity, 'ceda_project_id') 
    3233        return project 
Note: See TracChangeset for help on using the changeset viewer.