Ignore:
Timestamp:
Jan 3, 2007 1:47:41 PM (17 years ago)
Author:
crchemist
Message:

Now geolocation uses geo interfaces for point objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geolocation/branches/crchemist-geo_refactoring/interfaces/geolocation.py

    r406 r722  
    33from zope.schema import Float 
    44 
    5 class IGEOLocated(Interface): 
    6     """GEO location cordinates 
    7     """ 
    8     """ 
    9     longitude = Float( 
    10         title=u"Longitude", 
    11         description=u"", 
    12         required = False ) 
    13  
    14     latitude = Float( 
    15         title=u"Latitude", 
    16         description=u"", 
    17         required = False ) 
    18     """ 
    19      
    20     def getLongitude(): 
    21         """ return longtitude """ 
    22  
    23     def getLatitude(): 
    24         """ return latitude """ 
    25      
    26     def setLongitude(value): 
    27         """ set longtitude """ 
    28      
    29     def setLatitude(value): 
    30         """ set latitutde """ 
    31  
    32     def setLocation(latitude, longitude): 
    33        """ set location  """ 
    34  
    35 class IGEOLocatedView(Interface): 
     5class IPointView(Interface): 
    366    """browser view 
    377    """ 
     
    4111 
    4212    def getLatitude(): 
    43         """ return geo latitude """ 
     13        """ return point latitude """ 
    4414 
    4515    def getLongitude(): 
    46         """ return geo longitude """ 
     16        """ return point longitude """ 
Note: See TracChangeset for help on using the changeset viewer.