* 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 3d8852ba25
commit bad12c819d
3 changed files with 12 additions and 8 deletions

View File

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