diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index e8920d2fb..3cd4ce47b 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -3,6 +3,10 @@ and taskbar happy * src/plugins/Check.py: Add check for PersonRef referencing non existant person + * src/DataViews/_RelationView.py (info_string): Use DateHandler + instead of the date object to display the date + * src/DataViews/_PedigreeView.py (format person: Use DateHandler + instead of the date object to display the date (closes #565) 2006-11-08 Alex Roitman * src/plugins/SimpleBookTitle.py: Fix the object selection. diff --git a/gramps2/src/DataViews/_PedigreeView.py b/gramps2/src/DataViews/_PedigreeView.py index d484fe1cb..75c70c120 100644 --- a/gramps2/src/DataViews/_PedigreeView.py +++ b/gramps2/src/DataViews/_PedigreeView.py @@ -418,19 +418,19 @@ class FormattingHelper: break if birth and birth_fallback and use_markup: - bdate = "%s" % birth.get_date_object() + bdate = "%s" % DateHandler.get_date(birth) bplace = "%s" % self.get_place_name(birth.get_place_handle()) elif birth: - bdate = birth.get_date_object() + bdate = DateHandler.get_date(birth) bplace = self.get_place_name(birth.get_place_handle()) else: bdate = "" bplace = "" if death and death_fallback and use_markup: - ddate = "%s" % death.get_date_object() + ddate = "%s" % DateHandler.get_date(death) dplace = "%s" % self.get_place_name(death.get_place_handle()) elif death: - ddate = death.get_date_object() + ddate = DateHandler.get_date(death) dplace = self.get_place_name(death.get_place_handle()) else: ddate = "" diff --git a/gramps2/src/DataViews/_RelationView.py b/gramps2/src/DataViews/_RelationView.py index 7b1264b14..b226d5242 100644 --- a/gramps2/src/DataViews/_RelationView.py +++ b/gramps2/src/DataViews/_RelationView.py @@ -811,15 +811,15 @@ class RelationshipView(PageView.PersonNavView): break if birth and birth_fallback: - bdate = "%s" % birth.get_date_object() + bdate = "%s" % DateHandler.get_date(birth) elif birth: - bdate = birth.get_date_object() + bdate = DateHandler.get_date(birth) else: bdate = "" if death and death_fallback: - ddate = "%s" % death.get_date_object() + ddate = "%s" % DateHandler.get_date(death) elif death: - ddate = death.get_date_object() + ddate = DateHandler.get_date(death) else: ddate = ""