* src/plugins/Verify.py: handle different calendars properly

* src/FamilyView.py: fix references to add_to_person_list


svn: r2215
This commit is contained in:
Don Allingham 2003-10-08 04:24:11 +00:00
parent be5179705d
commit 74272b389a
2 changed files with 8 additions and 2 deletions

View File

@ -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()

View File

@ -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