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_conic.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:14 
    2326 
    2427@author: mnagni 
     
    5255        super(GM_Conic, self).__init__() 
    5356 
    54  
    55  
    5657    @property 
    57     def curve(self): 
     58    def curve(self):     
    5859        return self._gm_curvesegment.curve 
    5960 
    6061    @curve.setter 
    61     def curve(self, value): 
     62    def curve(self, value):      
    6263            self._gm_curvesegment.curve = value 
    6364 
    6465    @property 
    65     def numDerivativesAtEnd(self): 
     66    def numDerivativesAtEnd(self):       
    6667        return self._gm_curvesegment.numDerivativesAtEnd 
    6768 
    6869    @numDerivativesAtEnd.setter 
    69     def numDerivativesAtEnd(self, value): 
     70    def numDerivativesAtEnd(self, value):        
    7071            self._gm_curvesegment.numDerivativesAtEnd = value 
    7172 
    7273    @property 
    73     def interpolation(self): 
     74    def interpolation(self):     
    7475        return self._gm_curvesegment.interpolation 
    7576 
    7677    @interpolation.setter 
    77     def interpolation(self, value): 
     78    def interpolation(self, value):      
    7879            self._gm_curvesegment.interpolation = value 
    7980 
    8081    @property 
    81     def numDerivativesAtStart(self): 
     82    def numDerivativesAtStart(self):     
    8283        return self._gm_curvesegment.numDerivativesAtStart 
    8384 
    8485    @numDerivativesAtStart.setter 
    85     def numDerivativesAtStart(self, value): 
     86    def numDerivativesAtStart(self, value):      
    8687            self._gm_curvesegment.numDerivativesAtStart = value 
    8788 
    88  
    89  
    9089    @property 
    91     def numDerivativeInterior(self): 
     90    def numDerivativeInterior(self):     
    9291        return self._gm_curvesegment.numDerivativeInterior 
    9392 
    9493    @numDerivativeInterior.setter 
    95     def numDerivativeInterior(self, value): 
     94    def numDerivativeInterior(self, value):      
    9695            self._gm_curvesegment.numDerivativeInterior = value 
    97  
    98  
    99  
    100  
    101  
    102  
    103  
    104  
    10596 
    10697    def __key(self): 
    10798        return (self.startConstrParam, self.curve, self.numDerivativesAtEnd, self.interpolation, self.numDerivativesAtStart, self.endConstrParam, self.numDerivativeInterior, self.shifted, self.position, self.semiLatusRectum, self.eccentricity) 
    10899 
    109     def __eq__(x, y): 
     100    def __eq__(self, y): 
    110101        ''' 
    111102        Cannot compare classes which do not define a "__key" attribute  
    112103        ''' 
    113         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    114             return x.__key() == y.__key() 
    115         return id(x) == id(y) 
     104        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     105            return self.__key() == y.__key() 
     106        return id(self) == id(y) 
    116107 
    117108    def __hash__(self): 
Note: See TracChangeset for help on using the changeset viewer.