Ignore:
Timestamp:
13/03/12 13:32:01 (8 years ago)
Author:
mnagni
Message:

This new DB library adds better hash algorithm and a bug fix for the classes eq method

Location:
mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/maintenance_information
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/maintenance_information/md_maintenancefrequencycode.py

    r8091 r8160  
    2020 
    2121from ascore.ascodelist import  ASCodeList  
    22 from ascore.utils import has_value 
     22from ascore.utils import has_value, collectionProofHash 
    2323 
    2424''' 
    25 Created on 16-Feb-2012 16:18:11 
     25Created on 13-Mar-2012 11:08:07 
    2626 
    2727@author: mnagni 
     
    3535        This class has been genererated automatically using the Apache Velocity project. 
    3636    ''' 
     37    cl_notplanned = "notPlanned"  
     38    cl_fortnightly = "fortnightly"  
     39    cl_quarterly = "quarterly"  
     40    cl_unknown = "unknown"  
     41    cl_continual = "continual"  
     42    cl_weekly = "weekly"  
     43    cl_daily = "daily"  
     44    cl_irregular = "irregular"  
    3745    cl_asneeded = "asNeeded"  
    38     cl_weekly = "weekly"  
    39     cl_fortnightly = "fortnightly"  
    40     cl_continual = "continual"  
    41     cl_daily = "daily"  
    42     cl_quarterly = "quarterly"  
     46    cl_monthly = "monthly"  
     47    cl_biannually = "biannually"  
    4348    cl_annually = "annually"  
    44     cl_monthly = "monthly"  
    45     cl_irregular = "irregular"  
    46     cl_biannually = "biannually"  
    47     cl_unknown = "unknown"  
    48     cl_notplanned = "notPlanned"  
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/maintenance_information/md_maintenanceinformation.py

    r8091 r8160  
    1919 
    2020 
    21 from ascore.utils import has_value 
     21from ascore.utils import has_value, collectionProofHash 
    2222 
    2323''' 
    24 Created on 16-Feb-2012 16:18:07 
     24Created on 13-Mar-2012 11:08:14 
    2525 
    2626@author: mnagni 
     
    5353 
    5454    def __eq__(self, y): 
     55        if type(self) != type(y): 
     56            return False 
    5557        ''' 
    5658        Cannot compare classes which do not define a "__key" attribute  
     
    6163 
    6264    def __hash__(self): 
    63         return hash(self.__key()) 
     65        return collectionProofHash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/maintenance_information/md_scopecode.py

    r8091 r8160  
    2020 
    2121from ascore.ascodelist import  ASCodeList  
    22 from ascore.utils import has_value 
     22from ascore.utils import has_value, collectionProofHash 
    2323 
    2424''' 
    25 Created on 16-Feb-2012 16:18:05 
     25Created on 13-Mar-2012 11:08:06 
    2626 
    2727@author: mnagni 
     
    3535        This class has been genererated automatically using the Apache Velocity project. 
    3636    ''' 
     37    cl_collectionsession = "collectionSession"  
     38    cl_service = "service"  
    3739    cl_propertytype = "propertyType"  
    38     cl_collectionhardware = "collectionHardware"  
    39     cl_service = "service"  
    40     cl_software = "software"  
    41     cl_feature = "feature"  
    42     cl_fieldsession = "fieldSession"  
    43     cl_model = "model"  
    44     cl_attributetype = "attributeType"  
    45     cl_dataset = "dataset"  
    46     cl_nongeographicdataset = "nonGeographicDataset"  
    4740    cl_dimensiongroup = "dimensionGroup"  
    4841    cl_series = "series"  
     42    cl_feature = "feature"  
     43    cl_attribute = "attribute"  
     44    cl_attributetype = "attributeType"  
     45    cl_model = "model"  
     46    cl_collectionhardware = "collectionHardware"  
     47    cl_dataset = "dataset"  
     48    cl_featuretype = "featureType"  
     49    cl_fieldsession = "fieldSession"  
    4950    cl_tile = "tile"  
    50     cl_collectionsession = "collectionSession"  
    51     cl_featuretype = "featureType"  
    52     cl_attribute = "attribute"  
     51    cl_software = "software"  
     52    cl_nongeographicdataset = "nonGeographicDataset"  
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/maintenance_information/md_scopedescription.py

    r8091 r8160  
    2323from ascore.asunion import  ASUnion  
    2424from ea_model.iso_19109_2005_application_schema.general_feature_model.gf_featuretype import  GF_FeatureType  
    25 from ascore.utils import has_value 
     25from ascore.utils import has_value, collectionProofHash 
    2626 
    2727''' 
    28 Created on 16-Feb-2012 16:18:05 
     28Created on 13-Mar-2012 11:08:03 
    2929 
    3030@author: mnagni 
     
    3838        This class has been genererated automatically using the Apache Velocity project. 
    3939    ''' 
    40     types = {'attributeInstances':GF_AttributeType,'features':GF_FeatureType,'attributes':GF_AttributeType,'other':Text,'dataset':Text,'featureInstances':GF_FeatureType} 
     40    types = {'other':Text,'attributes':GF_AttributeType,'dataset':Text,'attributeInstances':GF_AttributeType,'features':GF_FeatureType,'featureInstances':GF_FeatureType} 
Note: See TracChangeset for help on using the changeset viewer.