Ignore:
Timestamp:
12/04/12 14:22:18 (8 years ago)
Author:
mnagni
Message:

Incomplete - # 22403: CEDA Observation - ceda Internal information
 http://team.ceda.ac.uk/trac/ceda/ticket/22403

File:
1 edited

Legend:

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

    r8221 r8225  
    4242from ea_model.ceda_metadatamodel.ceda_project.ceda_project import CEDA_Project 
    4343from ea_model.iso_19115_2006_metadata_corrigendum.metadata_entity_set_information.md_metadata import MD_Metadata 
     44from ea_model.ceda_metadatamodel.ceda_utilities.ceda_review import CEDA_Review 
    4445 
    4546base = '/exist/rest/atoms' 
     
    651652    return ci_party 
    652653 
    653 def createMO_ResponsiblePartyInfo_(role, i_party): 
     654def createMO_ResponsiblePartyInfo(role, i_party): 
    654655    """ 
    655656        @param role: a CI_RoleCode/MO_RoleValue assigned to this ResponsibleParty 
     
    660661    mo_responsableInfo.party.extend(i_party) 
    661662    return mo_responsableInfo 
    662  
    663 def createMO_ResponsiblePartyInfoAsCI_Organization(role, names): 
    664     ''' 
    665         @param role: a CI_RoleCode/MO_RoleValue assigned to this ResponsibleParty 
    666         @param names: the name assigned to each CI_Party 
    667     ''' 
    668     return createMO_ResponsiblePartyInfo(role, names, CI_Organisation) 
    669  
    670 def createMO_ResponsiblePartyInfoAsCI_Individual(role, names): 
    671     ''' 
    672         @param role: a CI_RoleCode/MO_RoleValue assigned to this ResponsibleParty 
    673         @param names: the name assigned to each CI_Party 
    674     ''' 
    675     return createMO_ResponsiblePartyInfo(role, names, CI_Individual) 
    676  
    677 def createMO_ResponsiblePartyInfo(role, names, partyType = CI_Party): 
    678     """ 
    679         @param role: a CI_RoleCode/MO_RoleValue assigned to this ResponsibleParty 
    680         @param names: the name assigned to each CI_Party 
    681         @param partyType: the CI_Party implementation to use  
    682     """ 
    683     mo_responsableInfo = MO_ResponsiblePartyInfo() 
    684     mo_responsableInfo.role = role 
    685     parties = [] 
    686     for name in names: 
    687         ci_org = partyType() 
    688         ci_org.name = name 
    689         parties.append(ci_org) 
    690     mo_responsableInfo.party = parties 
    691     return mo_responsableInfo 
    692  
    693663 
    694664 
     
    859829    return ceda_acquisition 
    860830 
     831def createCEDA_Review(reviewer, reviewFrequency, reviewStatus): 
     832    """ 
     833        Returns a new CEDA_Review 
     834        @param reviewer: an MO_ResponsibilityPartyInfo 
     835        @param reviewFrequency: a CEDA_ReviewFrequencyValue 
     836        @param reviewStatus: a CEDA_ReviewStatusValue 
     837    """ 
     838    ceda_review = CEDA_Review() 
     839    ceda_review.reviewer = reviewer 
     840    ceda_review.reviewFrequency = reviewFrequency  
     841    ceda_review.reviewStatus = reviewStatus            
     842    return ceda_review 
     843 
    861844def createCEDA_Project(abstract = None, publication_state = None, documentation = None, project_resource=None): 
    862845    ceda_project = CEDA_Project() 
Note: See TracChangeset for help on using the changeset viewer.