#2124: Baptism as alternate birth event on Det (Ancestral,Descendant) reports and Ancestral report
svn: r10910
This commit is contained in:
parent
9f801f3aa5
commit
92729c3f83
@ -218,6 +218,8 @@ class AncestorReport(Report):
|
||||
|
||||
self.doc.write_text(
|
||||
ReportUtils.born_str(self.database, person, first))
|
||||
self.doc.write_text(
|
||||
ReportUtils.baptised_str(self.database, person, 0))
|
||||
self.doc.write_text(
|
||||
ReportUtils.died_str(self.database, person, 0))
|
||||
self.doc.write_text(
|
||||
|
@ -235,8 +235,8 @@ class DetAncestorReport(Report):
|
||||
if not self.verbose:
|
||||
self.write_parents(person, first)
|
||||
|
||||
text = ReportUtils.born_str(self.database,person,first,self.verbose,
|
||||
self.EMPTY_DATE,self.EMPTY_PLACE)
|
||||
text = ReportUtils.born_str(self.database, person, first, self.verbose,
|
||||
self.EMPTY_DATE, self.EMPTY_PLACE)
|
||||
if text:
|
||||
birth_ref = person.get_birth_ref()
|
||||
if birth_ref:
|
||||
@ -246,9 +246,14 @@ class DetAncestorReport(Report):
|
||||
self.doc.write_text(text)
|
||||
first = 0
|
||||
|
||||
text = ReportUtils.baptised_str(self.database, person, first,
|
||||
self.verbose, self.EMPTY_DATE, self.EMPTY_PLACE)
|
||||
if text:
|
||||
self.doc.write_text(text)
|
||||
|
||||
age,units = self.calc_age(person)
|
||||
text = ReportUtils.died_str(self.database,person,first,self.verbose,
|
||||
self.EMPTY_DATE,self.EMPTY_PLACE,age,units)
|
||||
text = ReportUtils.died_str(self.database, person, first, self.verbose,
|
||||
self.EMPTY_DATE, self.EMPTY_PLACE, age, units)
|
||||
if text:
|
||||
death_ref = person.get_death_ref()
|
||||
if death_ref:
|
||||
@ -578,7 +583,8 @@ class DetAncestorReport(Report):
|
||||
event = self.database.get_event_from_handle(event_ref.ref)
|
||||
if event:
|
||||
etype = event.get_type()
|
||||
if etype == gen.lib.EventType.BURIAL or \
|
||||
if etype == gen.lib.EventType.BAPTISM or \
|
||||
etype == gen.lib.EventType.BURIAL or \
|
||||
etype == gen.lib.EventType.BIRTH or \
|
||||
etype == gen.lib.EventType.DEATH :
|
||||
has_info = True
|
||||
@ -618,6 +624,12 @@ class DetAncestorReport(Report):
|
||||
self.doc.write_text(text)
|
||||
print_name = 0
|
||||
|
||||
text = ReportUtils.baptised_str(self.database, ind, print_name,
|
||||
self.verbose, self.EMPTY_DATE, self.EMPTY_PLACE)
|
||||
if text:
|
||||
self.doc.write_text(text)
|
||||
print_name = 0
|
||||
|
||||
age, units = self.calc_age(ind)
|
||||
text = ReportUtils.died_str(self.database, ind, print_name,
|
||||
self.verbose, self.EMPTY_DATE, self.EMPTY_PLACE,
|
||||
@ -627,7 +639,7 @@ class DetAncestorReport(Report):
|
||||
print_name = 0
|
||||
|
||||
text = ReportUtils.buried_str(self.database, ind, print_name,
|
||||
self.EMPTY_DATE, self.EMPTY_PLACE)
|
||||
self.EMPTY_DATE, self.EMPTY_PLACE, self.verbose)
|
||||
if text:
|
||||
self.doc.write_text(text)
|
||||
print_name = 0
|
||||
|
@ -483,8 +483,8 @@ class DetDescendantReport(Report):
|
||||
if not self.verbose:
|
||||
self.write_parents(person, first)
|
||||
|
||||
text = ReportUtils.born_str(self.database,person,first, self.verbose,
|
||||
self.EMPTY_DATE,self.EMPTY_PLACE)
|
||||
text = ReportUtils.born_str(self.database, person, first, self.verbose,
|
||||
self.EMPTY_DATE, self.EMPTY_PLACE)
|
||||
if text:
|
||||
birth_ref = person.get_birth_ref()
|
||||
if birth_ref:
|
||||
@ -493,10 +493,15 @@ class DetDescendantReport(Report):
|
||||
text = text + self.endnotes(birth) + ". "
|
||||
self.doc.write_text(text)
|
||||
first = 0
|
||||
|
||||
text = ReportUtils.baptised_str(self.database, person, first, self.verbose,
|
||||
self.EMPTY_DATE,self.EMPTY_PLACE)
|
||||
if text:
|
||||
self.doc.write_text(text)
|
||||
|
||||
age,units = self.calc_age(person)
|
||||
text = ReportUtils.died_str(self.database,person,first,self.verbose,
|
||||
self.EMPTY_DATE,self.EMPTY_PLACE,age,units)
|
||||
text = ReportUtils.died_str(self.database, person, first, self.verbose,
|
||||
self.EMPTY_DATE, self.EMPTY_PLACE, age, units)
|
||||
if text:
|
||||
death_ref = person.get_death_ref()
|
||||
if death_ref:
|
||||
|
Loading…
Reference in New Issue
Block a user