Ignore:
Timestamp:
10/02/12 13:39:16 (8 years ago)
Author:
mnagni
Message:

New ea_model library.
No more use the django.forms. Now uses JSON and Dojo(javascript)
DB creation files are now executed as standard python function (before was used a system execution call)
Added an html example to play/work offline with DOJO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19130_sensor_data/functional_fit/sd_correctiontable.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    1922 
    2023''' 
    21 Created on 06-Feb-2012 15:59:39 
     24Created on 10-Feb-2012 12:03:12 
    2225 
    2326@author: mnagni 
     
    4144        super(SD_CorrectionTable, self).__init__() 
    4245 
    43  
    44  
    45  
    46  
    4746    def __key(self): 
    4847        return (self.value, self.dimension) 
    4948 
    50     def __eq__(x, y): 
     49    def __eq__(self, y): 
    5150        ''' 
    5251        Cannot compare classes which do not define a "__key" attribute  
    5352        ''' 
    54         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    55             return x.__key() == y.__key() 
    56         return id(x) == id(y) 
     53        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     54            return self.__key() == y.__key() 
     55        return id(self) == id(y) 
    5756 
    5857    def __hash__(self): 
Note: See TracChangeset for help on using the changeset viewer.