From 5f0779a1361647480e1e2340494e90152a2de8ea Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Sun, 10 Dec 2006 18:48:29 +0000 Subject: [PATCH] * src/DisplayModels/_PeopleModel.py: Fix birth date fallback svn: r7774 --- ChangeLog | 3 +++ src/DisplayModels/_PeopleModel.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 43a6e99e2..75862ef19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-12-10 Martin Hawlisch + * src/DisplayModels/_PeopleModel.py: Fix birth date fallback + 2006-12-09 Don Allingham * src/DataViews/_MediaView.py: external view support for media objects * src/Editors/_EditPlace.py: external view support for media objects diff --git a/src/DisplayModels/_PeopleModel.py b/src/DisplayModels/_PeopleModel.py index 8eb16e177..f5e8bf8a1 100644 --- a/src/DisplayModels/_PeopleModel.py +++ b/src/DisplayModels/_PeopleModel.py @@ -467,9 +467,10 @@ class PeopleModel(gtk.GenericTreeModel): er = EventRef() er.unserialize(event_ref) event = self.db.get_event_from_handle(er.ref) - etype = event.get_type()[0] + etype = event.get_type() date_str = DateHandler.get_date(event) if (etype in [EventType.BAPTISM, EventType.CHRISTEN] + and er.get_role() == EventRoleType.PRIMARY and date_str != ""): return "" + cgi.escape(date_str) + ""