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_19109_2005_application_schema/general_feature_model/gf_inheritancerelation.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    1922 
    2023''' 
    21 Created on 06-Feb-2012 15:59:38 
     24Created on 10-Feb-2012 12:03:12 
    2225 
    2326@author: mnagni 
     
    4447        super(GF_InheritanceRelation, self).__init__() 
    4548 
    46  
    47  
    48  
    49  
    50  
    51  
    52  
    53  
    54  
    55  
    5649    def __key(self): 
    5750        return (self.name, self.subtype, self.description, self.uniqueInstance, self.supertype) 
    5851 
    59     def __eq__(x, y): 
     52    def __eq__(self, y): 
    6053        ''' 
    6154        Cannot compare classes which do not define a "__key" attribute  
    6255        ''' 
    63         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    64             return x.__key() == y.__key() 
    65         return id(x) == id(y) 
     56        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     57            return self.__key() == y.__key() 
     58        return id(self) == id(y) 
    6659 
    6760    def __hash__(self): 
Note: See TracChangeset for help on using the changeset viewer.