diff --git a/src/plugins/view/geoview.py b/src/plugins/view/geoview.py
index 92c57cafd..f9d0f29e2 100644
--- a/src/plugins/view/geoview.py
+++ b/src/plugins/view/geoview.py
@@ -1956,7 +1956,7 @@ class GeoView(HtmlView):
Prepare the header of the page if we have no markers.
"""
if center:
- self._create_pages(ptype, "",
+ self._create_pages(
_("Cannot center the map. No location with coordinates."
"The following reasons are :
"
"- The active person has no places with coordinates.
"
@@ -1965,6 +1965,7 @@ class GeoView(HtmlView):
"- You have no active person set.
"),
)
self.box1.set_sensitive(False)
+ self._openurl(page)
else:
mess = ""
self._create_pages(ptype, message, mess)
@@ -2143,3 +2144,32 @@ class GeoView(HtmlView):
URL_SEP.join(filename.split(os.sep)),
'', ''))
+ def _create_message_page(self, message):
+ """
+ This function creates a page which contains a message.
+ """
+ tmpdir = GEOVIEW_SUBPATH
+ data = """
+
+
+
+
+ Message
+
+
+ %(content)s
+
+
+ """ % {
+ 'content': message
+ }
+
+ filename = os.path.join(tmpdir, 'message.html')
+ ufd = file(filename, "w+")
+ ufd.write(data)
+ ufd.close()
+ return urlparse.urlunsplit(('file', '',
+ URL_SEP.join(filename.split(os.sep)),
+ '', ''))
+