10088: Geography: try to link a map position if we have an active place.
This commit is contained in:
parent
676825cf52
commit
1a4d43dbbf
@ -201,12 +201,7 @@ class GeoPerson(GeoGraphyView):
|
|||||||
Rebuild the tree with the given person handle as the root.
|
Rebuild the tree with the given person handle as the root.
|
||||||
"""
|
"""
|
||||||
active = self.get_active()
|
active = self.get_active()
|
||||||
#if handle:
|
self._createmap(None)
|
||||||
# self._createmap(handle)
|
|
||||||
#elif active:
|
|
||||||
# p1 = self.dbstate.db.get_person_from_handle(active)
|
|
||||||
# self._createmap(p1)
|
|
||||||
self._createmap()
|
|
||||||
self.uistate.modify_statusbar(self.dbstate)
|
self.uistate.modify_statusbar(self.dbstate)
|
||||||
|
|
||||||
def build_tree(self):
|
def build_tree(self):
|
||||||
@ -216,8 +211,7 @@ class GeoPerson(GeoGraphyView):
|
|||||||
information.
|
information.
|
||||||
"""
|
"""
|
||||||
active = self.get_active()
|
active = self.get_active()
|
||||||
#self._createmap(active)
|
self._createmap(None)
|
||||||
self._createmap()
|
|
||||||
self.uistate.modify_statusbar(self.dbstate)
|
self.uistate.modify_statusbar(self.dbstate)
|
||||||
|
|
||||||
def animate(self, menu, marks, index, stepyear):
|
def animate(self, menu, marks, index, stepyear):
|
||||||
@ -288,10 +282,11 @@ class GeoPerson(GeoGraphyView):
|
|||||||
menu, marks, i, stepyear)
|
menu, marks, i, stepyear)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _createmap(self):
|
def _createmap(self, active):
|
||||||
"""
|
"""
|
||||||
Create all markers for each people's event in the database which has
|
Create all markers for each people's event in the database which has
|
||||||
a lat/lon.
|
a lat/lon.
|
||||||
|
@param: active is mandatory but unused in this view. Fix : 10088
|
||||||
"""
|
"""
|
||||||
dbstate = self.dbstate
|
dbstate = self.dbstate
|
||||||
self.cal = config.get('preferences.calendar-format-report')
|
self.cal = config.get('preferences.calendar-format-report')
|
||||||
|
Loading…
Reference in New Issue
Block a user