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_19123_2005_coverages/coverages/segmented_curve/cv_valuesegment.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:07 
    2225 
    2326@author: mnagni 
     
    4548        super(CV_ValueSegment, self).__init__() 
    4649 
    47  
    48  
    49  
    50  
    51  
    52  
    53  
    54  
    55  
    56  
    57  
    58  
    5950    def __key(self): 
    6051        return (self.startParameter, self.endParameter, self.curve, self.endValue, self.startValue, self.ends) 
    6152 
    62     def __eq__(x, y): 
     53    def __eq__(self, y): 
    6354        ''' 
    6455        Cannot compare classes which do not define a "__key" attribute  
    6556        ''' 
    66         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    67             return x.__key() == y.__key() 
    68         return id(x) == id(y) 
     57        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     58            return self.__key() == y.__key() 
     59        return id(self) == id(y) 
    6960 
    7061    def __hash__(self): 
Note: See TracChangeset for help on using the changeset viewer.