* 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

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