Ignore:
Timestamp:
06/07/12 09:00:43 (7 years ago)
Author:
mnagni
Message:

Added a new function to ascore.utils in order to synchronize classes before committing to database

The following constraints has been added to the official model:

MO_ObservationCollection:member:CEDA_Observation
MO_ObservationCollection:phenomenonTime:TM_GeometricPrimitive
MO_Project:observationCollection:CEDA_ObservationCollection
MO_Observation:result:CEDA_Result
MO_Observation:inSupportOf:CEDA_Project
MO_Project:subProject:CEDA_Project
OM_Observation:procedure:CEDA_Process
OM_Observation:phenomenonTime:TM_GeometricPrimitive
MO_ResponsiblePartyFunctionValue:CEDA_RoleValue

Location:
mauRepo/CedaMolesModel/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/CedaMolesModel/trunk

    • Property svn:ignore
      •  

        old new  
        44 
        55.project 
         6 
         7dist 
  • mauRepo/CedaMolesModel/trunk/ceda_moles_model

    • Property svn:ignore set to
      ceda_moles_model.egg-info
  • mauRepo/CedaMolesModel/trunk/ceda_moles_model/ea_model/ceda_metadatamodel/ceda_project/ceda_project.py

    r8398 r8437  
    2323 
    2424''' 
    25 Created on 26-Jun-2012 10:16:27 
     25Created on 06-Jul-2012 07:43:12 
    2626 
    2727@author: mnagni 
     
    7272                        self._mo_project.subProject = value 
    7373        @property 
     74        def identifier(self):    
     75                return self._mo_project.identifier 
     76 
     77        @identifier.setter 
     78        def identifier(self, value):     
     79                        self._mo_project.identifier = value 
     80        @property 
    7481        def publicationState(self):      
    7582                return self._mo_project.publicationState 
     
    7885        def publicationState(self, value):       
    7986                        self._mo_project.publicationState = value 
    80         @property 
    81         def identifier(self):    
    82                 return self._mo_project.identifier 
    83  
    84         @identifier.setter 
    85         def identifier(self, value):     
    86                         self._mo_project.identifier = value 
    8787        @property 
    8888        def abstract(self):      
     
    9393                        self._mo_project.abstract = value 
    9494        @property 
     95        def status(self):        
     96                return self._mo_project.status 
     97 
     98        @status.setter 
     99        def status(self, value):         
     100                        self._mo_project.status = value 
     101        @property 
    95102        def keywords(self):      
    96103                return self._mo_project.keywords 
     
    99106        def keywords(self, value):       
    100107                        self._mo_project.keywords = value 
    101         @property 
    102         def status(self):        
    103                 return self._mo_project.status 
    104  
    105         @status.setter 
    106         def status(self, value):         
    107                         self._mo_project.status = value 
    108108        @property 
    109109        def documentation(self):         
     
    132132 
    133133        def __key(self): 
    134                 return (self.metadataManagement, self.relatedParty, self.dmp, self.projectResource, self.subProject, self.publicationState, self.identifier, self.abstract, self.keywords, self.status, self.documentation, self.description, self.observationCollection) 
     134                return (self.metadataManagement, self.relatedParty, self.dmp, self.projectResource, self.subProject, self.identifier, self.publicationState, self.abstract, self.status, self.keywords, self.documentation, self.description, self.observationCollection) 
    135135 
    136136        def __eq__(self, y): 
Note: See TracChangeset for help on using the changeset viewer.