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:
Brian Matherly 2008-01-05 21:41:38 +00:00
parent 81e521c53b
commit 218e3d585c
2 changed files with 13 additions and 2 deletions

View File

@ -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:

View File

@ -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