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/implementation/names/typename.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:42 
     25Created on 10-Feb-2012 12:03:07 
    2326 
    2427@author: mnagni 
     
    4346        super(TypeName, self).__init__() 
    4447 
    45  
    46  
    4748    @property 
    48     def scope(self): 
     49    def scope(self):     
    4950        return self._localname.scope 
    5051 
    5152    @scope.setter 
    52     def scope(self, value): 
     53    def scope(self, value):      
    5354            self._localname.scope = value 
    5455 
     
    5657        return (self.aName, self.scope) 
    5758 
    58     def __eq__(x, y): 
     59    def __eq__(self, y): 
    5960        ''' 
    6061        Cannot compare classes which do not define a "__key" attribute  
    6162        ''' 
    62         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    63             return x.__key() == y.__key() 
    64         return id(x) == id(y) 
     63        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     64            return self.__key() == y.__key() 
     65        return id(self) == id(y) 
    6566 
    6667    def __hash__(self): 
Note: See TracChangeset for help on using the changeset viewer.