Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
b85396e65d8f
Commit
4eb3bd60
authored
Apr 05, 2011
by
Sylvain Thénault
Browse files
[igeocodable] import adapter description
--HG-- branch : stable
parent
4297be67bbe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/views/igeocodable.py
View file @
b85396e6
# copyright 2003-201
0
LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# copyright 2003-201
1
LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of CubicWeb.
...
...
@@ -33,13 +33,13 @@ class IGeocodableAdapter(EntityAdapter):
@
property
@
implements_adapter_compat
(
'IGeocodable'
)
def
latitude
(
self
):
"""returns the latitude of the entity"""
"""returns the latitude of the entity
in degree (-90 < float < +90)
"""
raise
NotImplementedError
@
property
@
implements_adapter_compat
(
'IGeocodable'
)
def
longitude
(
self
):
"""returns the longitude of the entity"""
"""returns the longitude of the entity
in degree (-180 < float < +180)
"""
raise
NotImplementedError
@
implements_adapter_compat
(
'IGeocodable'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment