Last change
on this file since 3218 was
1,
checked in by myroslav, 18 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
985 bytes
|
Rev | Line | |
---|
[1] | 1 | from zope.interface import Interface |
---|
| 2 | from zope.interface import Attribute |
---|
| 3 | from zope.schema import Float |
---|
| 4 | |
---|
| 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): |
---|
| 36 | """browser view |
---|
| 37 | """ |
---|
| 38 | |
---|
| 39 | def editLocation(latitude, longitude): |
---|
| 40 | """ update location properties """ |
---|
| 41 | |
---|
| 42 | def getLatitude(): |
---|
| 43 | """ return geo latitude """ |
---|
| 44 | |
---|
| 45 | def getLongitude(): |
---|
| 46 | """ return geo longitude """ |
---|
Note: See
TracBrowser
for help on using the repository browser.