0001505: Verifying database signals dead father, when he is not a father. (Patch from Raphael Ackermann <raphael.ackermann@gmail.com>)
svn: r9715
This commit is contained in:
parent
81e521c53b
commit
218e3d585c
@ -1,3 +1,8 @@
|
||||
2008-01-05 Raphael Ackermann <raphael.ackermann@gmail.com>
|
||||
* src/src/plugins/Verify.py:
|
||||
Patch from Raphael Ackermann
|
||||
Fix 0001505: Verifying database signals dead father, when he is not a father.
|
||||
|
||||
2008-01-05 Brian Matherly <brian@gramps-project.org>
|
||||
* src/ReportBase/_ReportDialog.py:
|
||||
* src/ReportBase/_BareReportDialog.py:
|
||||
|
@ -1404,13 +1404,19 @@ class DeadParent(FamilyRule):
|
||||
child_birth_date_ok = child_birth_date > 0
|
||||
if not child_birth_date_ok:
|
||||
continue
|
||||
father_broken = (father_death_date_ok
|
||||
|
||||
hasBirthRelToMother = child_ref.mrel == gen.lib.ChildRefType.BIRTH
|
||||
hasBirthRelToFather = child_ref.frel == gen.lib.ChildRefType.BIRTH
|
||||
|
||||
father_broken = (hasBirthRelToFather
|
||||
and father_death_date_ok
|
||||
and ((father_death_date + 294) < child_birth_date))
|
||||
if father_broken:
|
||||
self.get_message = self.father_message
|
||||
return True
|
||||
|
||||
mother_broken = (mother_death_date_ok
|
||||
mother_broken = (hasBirthRelToMother
|
||||
and mother_death_date_ok
|
||||
and (mother_death_date < child_birth_date))
|
||||
if mother_broken:
|
||||
self.get_message = self.mother_message
|
||||
|
Loading…
Reference in New Issue
Block a user