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/moles3_4/specimen/mo_specimenprocess.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:08 
    2326 
    2427@author: mnagni 
     
    4649        super(MO_SpecimenProcess, self).__init__() 
    4750 
    48  
    49  
    50  
    51  
    52  
    53  
    54  
    55  
    56  
    57  
    5851    def __key(self): 
    5952        return (self.identifier, self.relatedParty, self.component, self.documentation, self.description) 
    6053 
    61     def __eq__(x, y): 
     54    def __eq__(self, y): 
    6255        ''' 
    6356        Cannot compare classes which do not define a "__key" attribute  
    6457        ''' 
    65         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    66             return x.__key() == y.__key() 
    67         return id(x) == id(y) 
     58        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     59            return self.__key() == y.__key() 
     60        return id(self) == id(y) 
    6861 
    6962    def __hash__(self): 
Note: See TracChangeset for help on using the changeset viewer.