1549: use standard date formats for FamilyLines
svn: r10128
This commit is contained in:
parent
e913abe88b
commit
44000e4b96
@ -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>
|
2008-02-26 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/ReportBase/_CommandLineReport.py:
|
* src/ReportBase/_CommandLineReport.py:
|
||||||
0001828: update cli handling of new options. (new in 3.0?)
|
0001828: update cli handling of new options. (new in 3.0?)
|
||||||
|
@ -663,11 +663,7 @@ class FamilyLinesReport(Report):
|
|||||||
if (bth_event.private and self.includePrivate) or \
|
if (bth_event.private and self.includePrivate) or \
|
||||||
not bth_event.private:
|
not bth_event.private:
|
||||||
date = bth_event.get_date_object()
|
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)
|
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
|
# get birth place (one of: city, state, or country) we can use
|
||||||
birthplace = None
|
birthplace = None
|
||||||
@ -690,11 +686,7 @@ class FamilyLinesReport(Report):
|
|||||||
if (dth_event.private and self.includePrivate) or \
|
if (dth_event.private and self.includePrivate) or \
|
||||||
not dth_event.private:
|
not dth_event.private:
|
||||||
date = dth_event.get_date_object()
|
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)
|
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
|
# get death place (one of: city, state, or country) we can use
|
||||||
deathplace = None
|
deathplace = None
|
||||||
@ -793,10 +785,7 @@ class FamilyLinesReport(Report):
|
|||||||
if (event.private and self.includePrivate) or not event.private:
|
if (event.private and self.includePrivate) or not event.private:
|
||||||
if self.includeDates:
|
if self.includeDates:
|
||||||
date = event.get_date_object()
|
date = event.get_date_object()
|
||||||
if date.get_day_valid() and date.get_month_valid() and date.get_year_valid():
|
|
||||||
weddingDate = _dd.display(date)
|
weddingDate = _dd.display(date)
|
||||||
elif date.get_year_valid():
|
|
||||||
weddingDate = '%d' % date.get_year()
|
|
||||||
# get the wedding location
|
# get the wedding location
|
||||||
if self.includePlaces:
|
if self.includePlaces:
|
||||||
place = self.db.get_place_from_handle(event.get_place_handle())
|
place = self.db.get_place_from_handle(event.get_place_handle())
|
||||||
|
Loading…
Reference in New Issue
Block a user