* src/DataViews/_PlaceView.py: add attempt to map to google maps,
check for valid list svn: r6985
This commit is contained in:
parent
1ab9acf99f
commit
724f41b4b8
@ -1,5 +1,6 @@
|
|||||||
2006-07-03 Don Allingham <don@gramps-project.org>
|
2006-07-03 Don Allingham <don@gramps-project.org>
|
||||||
* src/DataViews/_PlaceView.py: add attempt to map to google maps
|
* src/DataViews/_PlaceView.py: add attempt to map to google maps,
|
||||||
|
check for valid list
|
||||||
* src/glade/gramps.glade: fix date status button.
|
* src/glade/gramps.glade: fix date status button.
|
||||||
|
|
||||||
2006-07-02 Don Allingham <don@gramps-project.org>
|
2006-07-02 Don Allingham <don@gramps-project.org>
|
||||||
|
@ -104,7 +104,10 @@ class PlaceView(PageView.ListView):
|
|||||||
def google(self, obj):
|
def google(self, obj):
|
||||||
import GrampsDisplay
|
import GrampsDisplay
|
||||||
|
|
||||||
|
try:
|
||||||
place_handle = self.selected_handles()[0]
|
place_handle = self.selected_handles()[0]
|
||||||
|
except IndexError:
|
||||||
|
return
|
||||||
place = self.dbstate.db.get_place_from_handle(place_handle)
|
place = self.dbstate.db.get_place_from_handle(place_handle)
|
||||||
descr = place.get_title()
|
descr = place.get_title()
|
||||||
longitude = place.get_longitude()
|
longitude = place.get_longitude()
|
||||||
|
Loading…
Reference in New Issue
Block a user