From 01757effa1f24469c45ab1379f7b514712d0e7e9 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Tue, 9 Feb 2010 22:43:40 +0000 Subject: [PATCH] GeoView : issue 3583 and missing file when no database. svn: r14299 --- src/plugins/view/geoview.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/view/geoview.py b/src/plugins/view/geoview.py index e19364fed..04ce22691 100644 --- a/src/plugins/view/geoview.py +++ b/src/plugins/view/geoview.py @@ -662,8 +662,8 @@ class GeoView(HtmlView): ) if config.get('geoview.lock'): config.set('geoview.zoom', int(self.realzoom)) - config.set('geoview.latitude', self.reallatitude) - config.set('geoview.longitude', self.reallongitude) + config.set('geoview.latitude', str(self.reallatitude)) + config.set('geoview.longitude', str(self.reallongitude)) config.set('geoview.map', self.displaytype) else: config.set('geoview.zoom', 0) @@ -782,6 +782,8 @@ class GeoView(HtmlView): URL_SEP.join(url.split(os.sep)), '', '')) else: + if self.htmlfile == "": + self.htmlfile = os.path.join(GEOVIEW_SUBPATH, "geography.html") url = urlparse.urlunsplit( ('file', '', URL_SEP.join(self.htmlfile.split(os.sep)), '', ''))