diff --git a/gramps2/src/FamilyView.py b/gramps2/src/FamilyView.py index a7fddc1fb..804db6620 100644 --- a/gramps2/src/FamilyView.py +++ b/gramps2/src/FamilyView.py @@ -453,7 +453,7 @@ class FamilyView: else: self.parent.db.addPersonNoMap(epo.person,epo.person.getId()) self.parent.db.buildPersonDisplay(epo.person.getId()) - self.parent.add_to_person_list(epo.person,0) + self.parent.people_view.add_to_person_list(epo.person,0) self.family = self.parent.db.newFamily() self.person.addFamily(self.family) @@ -517,7 +517,7 @@ class FamilyView: self.parent.db.addPersonNoMap(epo.person,epo.person.getId()) self.parent.db.buildPersonDisplay(epo.person.getId()) - self.parent.add_to_person_list(epo.person,0) + self.parent.people_view.add_to_person_list(epo.person,0) if not self.family: self.family = self.parent.db.newFamily() diff --git a/gramps2/src/plugins/Verify.py b/gramps2/src/plugins/Verify.py index d6a4f0133..a98169c93 100644 --- a/gramps2/src/plugins/Verify.py +++ b/gramps2/src/plugins/Verify.py @@ -49,6 +49,9 @@ import gtk.glade #------------------------------------------------------------------------ import RelLib import Utils +import Date +import Gregorian + from gettext import gettext as _ db = None @@ -61,6 +64,9 @@ def get_year( event ): if event != None: dateObj = event.getDateObj() if dateObj != None: + dateObj = Date.Date(dateObj) + if dateObj.__class__ != Gregorian.Gregorian: + dateObj.set_calendar(Gregorian.Gregorian) year = dateObj.getYear() return year