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_19107_2003_spatial_schema/geometry/coordinate_geometry/gm_genericcurve.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    1922 
    2023''' 
    21 Created on 06-Feb-2012 15:59:37 
     24Created on 10-Feb-2012 12:03:13 
    2225 
    2326@author: mnagni 
     
    4245        return () 
    4346 
    44     def __eq__(x, y): 
     47    def __eq__(self, y): 
    4548        ''' 
    4649        Cannot compare classes which do not define a "__key" attribute  
    4750        ''' 
    48         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    49             return x.__key() == y.__key() 
    50         return id(x) == id(y) 
     51        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     52            return self.__key() == y.__key() 
     53        return id(self) == id(y) 
    5154 
    5255    def __hash__(self): 
Note: See TracChangeset for help on using the changeset viewer.