From 09caa905309c5520d1cb88e607bfb0abf5399391 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 18 Feb 2015 22:17:41 +0000 Subject: [PATCH] Use place displayer in relationship view --- gramps/plugins/view/relview.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gramps/plugins/view/relview.py b/gramps/plugins/view/relview.py index 70b4b0a10..28f8e8483 100644 --- a/gramps/plugins/view/relview.py +++ b/gramps/plugins/view/relview.py @@ -717,7 +717,7 @@ class RelationshipView(NavigationView): dobj = event.get_date_object() phandle = event.get_place_handle() if phandle: - pname = self.place_name(phandle) + pname = place_displayer.display_event(self.dbstate.db, event) else: pname = None @@ -1273,10 +1273,6 @@ class RelationshipView(NavigationView): msg = _('Relationship type: %s') % cgi.escape(str(family.get_relationship())) box.add(widgets.MarkupLabel(msg)) - def place_name(self, handle): - p = self.dbstate.db.get_place_from_handle(handle) - return p.get_title() - def write_relationship_events(self, vbox, family): value = False for event_ref in family.get_event_ref_list(): @@ -1295,7 +1291,7 @@ class RelationshipView(NavigationView): dobj = event.get_date_object() phandle = event.get_place_handle() if phandle: - pname = self.place_name(phandle) + pname = place_displayer.display_event(self.dbstate.db, event) else: pname = None