From 545ec06e6d3a61a620d1cfdffa9da419a62f77b1 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sat, 19 Dec 2009 16:07:40 +0000 Subject: [PATCH] Fix wrong calls to get_type svn: r13851 --- src/DataViews/RelationView.py | 7 ++++--- src/plugins/gramplet/PedigreeGramplet.py | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/DataViews/RelationView.py b/src/DataViews/RelationView.py index 99a6155d7..04f002eba 100644 --- a/src/DataViews/RelationView.py +++ b/src/DataViews/RelationView.py @@ -1,6 +1,7 @@ - +# Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2001-2007 Donald N. Allingham +# Copyright (C) 2009 Gary Burton # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -1102,7 +1103,7 @@ class RelationshipView(PageView.PersonNavView): return None birth = ReportUtils.get_birth_or_fallback(self.dbstate.db, person) - if birth and birth.get_type != gen.lib.EventType.BIRTH: + if birth and birth.get_type() != gen.lib.EventType.BIRTH: sdate = DateHandler.get_date(birth) if sdate: bdate = "%s" % cgi.escape(sdate) @@ -1114,7 +1115,7 @@ class RelationshipView(PageView.PersonNavView): bdate = "" death = ReportUtils.get_death_or_fallback(self.dbstate.db, person) - if death and death.get_type != gen.lib.EventType.DEATH: + if death and death.get_type() != gen.lib.EventType.DEATH: sdate = DateHandler.get_date(death) if sdate: ddate = "%s" % cgi.escape(sdate) diff --git a/src/plugins/gramplet/PedigreeGramplet.py b/src/plugins/gramplet/PedigreeGramplet.py index 1a3222579..ea37dadee 100644 --- a/src/plugins/gramplet/PedigreeGramplet.py +++ b/src/plugins/gramplet/PedigreeGramplet.py @@ -1,6 +1,7 @@ # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007-2009 Douglas S. Blank +# Copyright (C) 2009 Gary Burton # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -185,7 +186,7 @@ class PedigreeGramplet(Gramplet): def info_string(self, person): birth = ReportUtils.get_birth_or_fallback(self.dbstate.db, person) - if birth and birth.get_type != gen.lib.EventType.BIRTH: + if birth and birth.get_type() != gen.lib.EventType.BIRTH: sdate = DateHandler.get_date(birth) if sdate: bdate = "%s" % cgi.escape(sdate) @@ -197,7 +198,7 @@ class PedigreeGramplet(Gramplet): bdate = "" death = ReportUtils.get_death_or_fallback(self.dbstate.db, person) - if death and death.get_type != gen.lib.EventType.DEATH: + if death and death.get_type() != gen.lib.EventType.DEATH: sdate = DateHandler.get_date(death) if sdate: ddate = "%s" % cgi.escape(sdate)