1549: use standard date formats for FamilyLines

svn: r10128
This commit is contained in:
Stéphane Charette 2008-02-27 08:37:01 +00:00
parent e913abe88b
commit 44000e4b96
2 changed files with 7 additions and 14 deletions

View File

@ -1,3 +1,7 @@
2008-02-27 Stéphane Charette <stephanecharette@gmail.com>
* src/plugins/GVFamilyLines.py:
0001549: use standard date formats for FamilyLines
2008-02-26 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_CommandLineReport.py:
0001828: update cli handling of new options. (new in 3.0?)

View File

@ -663,11 +663,7 @@ class FamilyLinesReport(Report):
if (bth_event.private and self.includePrivate) or \
not bth_event.private:
date = bth_event.get_date_object()
if date.get_day_valid() and date.get_month_valid() and \
date.get_year_valid():
birthStr = _dd.display(date)
elif date.get_year_valid():
birthStr = '%d' % date.get_year()
# get birth place (one of: city, state, or country) we can use
birthplace = None
@ -690,11 +686,7 @@ class FamilyLinesReport(Report):
if (dth_event.private and self.includePrivate) or \
not dth_event.private:
date = dth_event.get_date_object()
if date.get_day_valid() and date.get_month_valid() and \
date.get_year_valid():
deathStr = _dd.display(date)
elif date.get_year_valid():
deathStr = '%d' % date.get_year()
# get death place (one of: city, state, or country) we can use
deathplace = None
@ -793,10 +785,7 @@ class FamilyLinesReport(Report):
if (event.private and self.includePrivate) or not event.private:
if self.includeDates:
date = event.get_date_object()
if date.get_day_valid() and date.get_month_valid() and date.get_year_valid():
weddingDate = _dd.display(date)
elif date.get_year_valid():
weddingDate = '%d' % date.get_year()
# get the wedding location
if self.includePlaces:
place = self.db.get_place_from_handle(event.get_place_handle())