From 13ad0f858ee57bfd8bb324574199fc521cbee282 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Wed, 10 Dec 2008 14:59:26 +0000 Subject: [PATCH] Adding conversion for latitude and longitude and end of cleaning for gtkhtml. svn: r11450 --- src/DataViews/GeoView.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/DataViews/GeoView.py b/src/DataViews/GeoView.py index 973ddec7e..7ac6ab5eb 100644 --- a/src/DataViews/GeoView.py +++ b/src/DataViews/GeoView.py @@ -55,6 +55,7 @@ import gtk #------------------------------------------------------------------------- import logging LOG = logging.getLogger(".GeoView") +LOG.setLevel(logging.DEBUG) #------------------------------------------------------------------------- # @@ -67,6 +68,7 @@ import Utils import Config from const import TEMP_DIR from BasicUtils import name_displayer as _nd +from PlaceUtils import conv_lat_lon #------------------------------------------------------------------------- # @@ -149,8 +151,6 @@ class Renderer(): self.m.open("file://"+htmlfile) elif (self.browser == 2): self.m.load_url("file://"+htmlfile) - elif (self.browser == 3): - self.m.openURL ("file://"+htmlfile); #------------------------------------------------------------------------- # @@ -448,16 +448,12 @@ class GeoView(PageView.PersonNavView): #self.m.zoom_in(); # make text bigger elif (self.browser == 2): self.m.load_url("javascript:callFromPython("+str(count)+")"); - elif (self.browser == 3): - self.m.openURL("javascript:callFromPython("+str(count)+")"); def change_map(self): if (self.browser == 1): self.m.execute_script("javascript:mapstraction.swap(map,'"+self.usedmap+"')"); elif (self.browser == 2): self.m.load_url("javascript:mapstraction.swap(map,'"+self.usedmap+"')"); - elif (self.browser == 3): - self.m.openURL("javascript:mapstraction.swap(map,'"+self.usedmap+"')"); def build_widget(self): """ @@ -637,8 +633,6 @@ class GeoView(PageView.PersonNavView): self.m.open("file://"+htmlfile) elif (self.browser == 2): self.m.load_url("file://"+htmlfile) - elif (self.browser == 3): - self.m.openURL ("file://"+htmlfile); if (self.browser != 0): self.m.show_all() @@ -875,7 +869,6 @@ class GeoView(PageView.PersonNavView): return ret def create_markers(self,format): - from PlaceUtils import conv_lat_lon self.centered = 0 self.geo += "
\n" % 600 self.geo += "