* 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
This commit is contained in:
Martin Hawlisch 2006-11-09 13:04:21 +00:00
parent 2b97ac774c
commit 0011110903
3 changed files with 12 additions and 8 deletions

View File

@ -3,6 +3,10 @@
and taskbar happy and taskbar happy
* src/plugins/Check.py: Add check for PersonRef referencing non * src/plugins/Check.py: Add check for PersonRef referencing non
existant person 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 <shura@gramps-project.org> 2006-11-08 Alex Roitman <shura@gramps-project.org>
* src/plugins/SimpleBookTitle.py: Fix the object selection. * src/plugins/SimpleBookTitle.py: Fix the object selection.

View File

@ -418,19 +418,19 @@ class FormattingHelper:
break break
if birth and birth_fallback and use_markup: if birth and birth_fallback and use_markup:
bdate = "<i>%s</i>" % birth.get_date_object() bdate = "<i>%s</i>" % DateHandler.get_date(birth)
bplace = "<i>%s</i>" % self.get_place_name(birth.get_place_handle()) bplace = "<i>%s</i>" % self.get_place_name(birth.get_place_handle())
elif birth: elif birth:
bdate = birth.get_date_object() bdate = DateHandler.get_date(birth)
bplace = self.get_place_name(birth.get_place_handle()) bplace = self.get_place_name(birth.get_place_handle())
else: else:
bdate = "" bdate = ""
bplace = "" bplace = ""
if death and death_fallback and use_markup: if death and death_fallback and use_markup:
ddate = "<i>%s</i>" % death.get_date_object() ddate = "<i>%s</i>" % DateHandler.get_date(death)
dplace = "<i>%s</i>" % self.get_place_name(death.get_place_handle()) dplace = "<i>%s</i>" % self.get_place_name(death.get_place_handle())
elif death: elif death:
ddate = death.get_date_object() ddate = DateHandler.get_date(death)
dplace = self.get_place_name(death.get_place_handle()) dplace = self.get_place_name(death.get_place_handle())
else: else:
ddate = "" ddate = ""

View File

@ -811,15 +811,15 @@ class RelationshipView(PageView.PersonNavView):
break break
if birth and birth_fallback: if birth and birth_fallback:
bdate = "<i>%s</i>" % birth.get_date_object() bdate = "<i>%s</i>" % DateHandler.get_date(birth)
elif birth: elif birth:
bdate = birth.get_date_object() bdate = DateHandler.get_date(birth)
else: else:
bdate = "" bdate = ""
if death and death_fallback: if death and death_fallback:
ddate = "<i>%s</i>" % death.get_date_object() ddate = "<i>%s</i>" % DateHandler.get_date(death)
elif death: elif death:
ddate = death.get_date_object() ddate = DateHandler.get_date(death)
else: else:
ddate = "" ddate = ""