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/informative/other_location_services/directory/di_location.py

    r8397 r8437  
    2323 
    2424''' 
    25 Created on 26-Jun-2012 10:16:31 
     25Created on 06-Jul-2012 07:43:16 
    2626 
    2727@author: mnagni 
     
    4646                self._position_gm_aggregate = None 
    4747                self._position = None 
     48                self._address_ad_usaddress = None 
    4849                self._address_ad_address = None 
    49                 self._address_ad_usaddress = None 
    5050                self._address = None 
    5151                super(DI_Location, self).__init__() 
     
    7777        @property 
    7878        def address(self):       
     79                if(has_value(self._address_ad_usaddress)): 
     80                        return self._address_ad_usaddress 
    7981                if(has_value(self._address_ad_address)): 
    8082                        return self._address_ad_address 
    81                 if(has_value(self._address_ad_usaddress)): 
    82                         return self._address_ad_usaddress 
    8383                return  None 
    8484 
     
    8686        def address(self, value):        
    8787                valueClass = "%s.%s" % (type(value).__module__,type(value).__name__) 
     88                if valueClass == "ea_model.iso_19133_tracking_and_navigation.address_model.address.ad_usaddress.AD_USAddress": 
     89                        self._address_ad_usaddress = value 
     90                        self._address_ad_address = None 
    8891                if valueClass == "ea_model.iso_19133_tracking_and_navigation.address_model.address.ad_address.AD_Address": 
    8992                        self._address_ad_address = value 
    9093                        self._address_ad_usaddress = None 
    91                 if valueClass == "ea_model.iso_19133_tracking_and_navigation.address_model.address.ad_usaddress.AD_USAddress": 
    92                         self._address_ad_usaddress = value 
    93                         self._address_ad_address = None 
    9494 
    9595        def synchronize(self): 
Note: See TracChangeset for help on using the changeset viewer.