2006-12-06  Alex Roitman  <shura@gramps-project.org>
	* src/Makefile.am (gdir_PYTHON): Ship new file.

2006-12-06  Benny Malengier  <bm@cage.UGent.be>
	* src/PlaceUtils.py: Add new file.
	* src/DataViews/_PlaceView.py (google): Use new module.

In po:
2006-12-06  Alex Roitman  <shura@gramps-project.org>
	* POTFILES.in: List new file.



svn: r7765
This commit is contained in:
Alex Roitman
2006-12-06 17:52:48 +00:00
parent b32028bea6
commit 5bf3d98930
6 changed files with 565 additions and 1 deletions

View File

@@ -136,6 +136,7 @@ class PlaceView(PageView.ListView):
def google(self, obj):
import GrampsDisplay
from PlaceUtils import conv_lat_lon
try:
place_handle = self.selected_handles()[0]
@@ -145,6 +146,7 @@ class PlaceView(PageView.ListView):
descr = place.get_title()
longitude = place.get_longitude()
latitude = place.get_latitude()
latitude,longitude = conv_lat_lon(latitude,longitude,"D.D8")
if longitude and latitude:
path = "http://maps.google.com/?sll=%s,%s&z=15" % (latitude,longitude)