make context info work for person merge

svn: r16525
This commit is contained in:
Michiel Nauta 2011-02-01 12:06:25 +00:00
parent 6d596ad987
commit 3fff5e38b8

View File

@ -270,7 +270,7 @@ class MergePeople(ManagedWindow.ManagedWindow):
date = "" date = ""
place = "" place = ""
if handle: if handle:
event = self.database.db.get_event_from_handle(handle) event = self.database.get_event_from_handle(handle)
date = DateHandler.get_date(event) date = DateHandler.get_date(event)
place = self.place_name(event) place = self.place_name(event)
if date: if date:
@ -284,7 +284,7 @@ class MergePeople(ManagedWindow.ManagedWindow):
"""Return place name of an event as string.""" """Return place name of an event as string."""
place_id = event.get_place_handle() place_id = event.get_place_handle()
if place_id: if place_id:
place = self.database.db.get_place_from_handle(place_id) place = self.database.get_place_from_handle(place_id)
return place.get_title() return place.get_title()
else: else:
return "" return ""