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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/distribution_information/md_medium.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:08 
     24Created on 13-Mar-2012 11:08:13 
    2525 
    2626@author: mnagni 
     
    5252 
    5353    def __eq__(self, y): 
     54        if type(self) != type(y): 
     55            return False 
    5456        ''' 
    5557        Cannot compare classes which do not define a "__key" attribute  
     
    6062 
    6163    def __hash__(self): 
    62         return hash(self.__key()) 
     64        return collectionProofHash(self.__key()) 
Note: See TracChangeset for help on using the changeset viewer.