From 4392fa3120327d258e836e79cbb9937d94847b31 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sat, 19 Dec 2009 16:08:44 +0000 Subject: [PATCH] Fix wrong calls to get_type svn: r13852 --- src/plugins/gramplet/PedigreeGramplet.py | 5 +++-- src/plugins/view/relview.py | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/plugins/gramplet/PedigreeGramplet.py b/src/plugins/gramplet/PedigreeGramplet.py index 149e6382e..e0e8b5ded 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) diff --git a/src/plugins/view/relview.py b/src/plugins/view/relview.py index 4b4dfa41a..02c1427b0 100644 --- a/src/plugins/view/relview.py +++ b/src/plugins/view/relview.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 @@ -1122,7 +1123,7 @@ class RelationshipView(NavigationView): 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) @@ -1134,7 +1135,7 @@ class RelationshipView(NavigationView): 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)