Fix wrong calls to get_type
svn: r13852
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2007-2009 Douglas S. Blank <doug.blank@gmail.com>
|
# Copyright (C) 2007-2009 Douglas S. Blank <doug.blank@gmail.com>
|
||||||
|
# Copyright (C) 2009 Gary Burton
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# 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):
|
def info_string(self, person):
|
||||||
birth = ReportUtils.get_birth_or_fallback(self.dbstate.db, 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)
|
sdate = DateHandler.get_date(birth)
|
||||||
if sdate:
|
if sdate:
|
||||||
bdate = "<i>%s</i>" % cgi.escape(sdate)
|
bdate = "<i>%s</i>" % cgi.escape(sdate)
|
||||||
@@ -197,7 +198,7 @@ class PedigreeGramplet(Gramplet):
|
|||||||
bdate = ""
|
bdate = ""
|
||||||
|
|
||||||
death = ReportUtils.get_death_or_fallback(self.dbstate.db, person)
|
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)
|
sdate = DateHandler.get_date(death)
|
||||||
if sdate:
|
if sdate:
|
||||||
ddate = "<i>%s</i>" % cgi.escape(sdate)
|
ddate = "<i>%s</i>" % cgi.escape(sdate)
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2001-2007 Donald N. Allingham
|
# Copyright (C) 2001-2007 Donald N. Allingham
|
||||||
|
# Copyright (C) 2009 Gary Burton
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -1122,7 +1123,7 @@ class RelationshipView(NavigationView):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
birth = ReportUtils.get_birth_or_fallback(self.dbstate.db, 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)
|
sdate = DateHandler.get_date(birth)
|
||||||
if sdate:
|
if sdate:
|
||||||
bdate = "<i>%s</i>" % cgi.escape(sdate)
|
bdate = "<i>%s</i>" % cgi.escape(sdate)
|
||||||
@@ -1134,7 +1135,7 @@ class RelationshipView(NavigationView):
|
|||||||
bdate = ""
|
bdate = ""
|
||||||
|
|
||||||
death = ReportUtils.get_death_or_fallback(self.dbstate.db, person)
|
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)
|
sdate = DateHandler.get_date(death)
|
||||||
if sdate:
|
if sdate:
|
||||||
ddate = "<i>%s</i>" % cgi.escape(sdate)
|
ddate = "<i>%s</i>" % cgi.escape(sdate)
|
||||||
|
Reference in New Issue
Block a user