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/metadata_extension_information
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/metadata_extension_information/md_datatypecode.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:07 
     25Created on 13-Mar-2012 11:08:05 
    2626 
    2727@author: mnagni 
     
    3535        This class has been genererated automatically using the Apache Velocity project. 
    3636    ''' 
     37    cl_specifiedclass = "specifiedClass"  
     38    cl_codelist = "codelist"  
     39    cl_integer = "integer"  
     40    cl_characterstring = "characterString"  
     41    cl_interfaceclass = "interfaceClass"  
    3742    cl_aggregateclass = "aggregateClass"  
     43    cl_abstractclass = "abstractClass"  
     44    cl_association = "association"  
    3845    cl_typeclass = "typeClass"  
     46    cl_codelistelement = "codelistElement"  
     47    cl_unionclass = "unionClass"  
     48    cl_enumeration = "enumeration"  
    3949    cl_metaclass = "metaClass"  
    40     cl_abstractclass = "abstractClass"  
    4150    cl_class = "class"  
    42     cl_codelistelement = "codelistElement"  
    43     cl_integer = "integer"  
    44     cl_association = "association"  
    45     cl_enumeration = "enumeration"  
    46     cl_interfaceclass = "interfaceClass"  
    47     cl_codelist = "codelist"  
    4851    cl_datatypeclass = "datatypeClass"  
    49     cl_unionclass = "unionClass"  
    50     cl_characterstring = "characterString"  
    51     cl_specifiedclass = "specifiedClass"  
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/metadata_extension_information/md_extendedelementinformation.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:03 
     24Created on 13-Mar-2012 11:08:10 
    2525 
    2626@author: mnagni 
     
    5959 
    6060    def __eq__(self, y): 
     61        if type(self) != type(y): 
     62            return False 
    6163        ''' 
    6264        Cannot compare classes which do not define a "__key" attribute  
     
    6769 
    6870    def __hash__(self): 
    69         return hash(self.__key()) 
     71        return collectionProofHash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/metadata_extension_information/md_metadataextensioninformation.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:11 
     24Created on 13-Mar-2012 11:08:09 
    2525 
    2626@author: mnagni 
     
    4848 
    4949    def __eq__(self, y): 
     50        if type(self) != type(y): 
     51            return False 
    5052        ''' 
    5153        Cannot compare classes which do not define a "__key" attribute  
     
    5658 
    5759    def __hash__(self): 
    58         return hash(self.__key()) 
     60        return collectionProofHash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/metadata_extension_information/md_obligationcode.py

    r8091 r8160  
    2020 
    2121from ascore.asenumeration import  ASEnumeration  
    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:08 
    2626 
    2727@author: mnagni 
     
    3535        This class has been genererated automatically using the Apache Velocity project. 
    3636    ''' 
    37     en_conditional = "conditional"  
    3837    en_optional = "optional"  
    3938    en_mandatory = "mandatory"  
     39    en_conditional = "conditional"  
Note: See TracChangeset for help on using the changeset viewer.