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_19103_2005_schema_language/basic_types/primitive/numerics/decimal.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:46 
     25Created on 10-Feb-2012 12:03:13 
    2326 
    2427@author: mnagni 
     
    4447        return () 
    4548 
    46     def __eq__(x, y): 
     49    def __eq__(self, y): 
    4750        ''' 
    4851        Cannot compare classes which do not define a "__key" attribute  
    4952        ''' 
    50         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    51             return x.__key() == y.__key() 
    52         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) 
    5356 
    5457    def __hash__(self): 
Note: See TracChangeset for help on using the changeset viewer.