From bad12c819d009b96cf8339bc7687274fceea5373 Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Thu, 9 Nov 2006 13:04:21 +0000 Subject: [PATCH] * 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) svn: r7598 --- ChangeLog | 4 ++++ src/DataViews/_PedigreeView.py | 8 ++++---- src/DataViews/_RelationView.py | 8 ++++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index e8920d2fb..3cd4ce47b 100644 --- a/ChangeLog +++ b/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/src/DataViews/_PedigreeView.py b/src/DataViews/_PedigreeView.py index d484fe1cb..75c70c120 100644 --- a/src/DataViews/_PedigreeView.py +++ b/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/src/DataViews/_RelationView.py b/src/DataViews/_RelationView.py index 7b1264b14..b226d5242 100644 --- a/src/DataViews/_RelationView.py +++ b/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 = ""