From 1451ac5552d03657211598042e1e127bf2c87a0d Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 8 Oct 2003 04:13:41 +0000 Subject: [PATCH] * src/plugins/FtmStyleAncestors.py (write_report): Likewise. * src/plugins/Verify.py (on_apply_clicked): Detect homosexual marriage only if the spouses' gender is known and equal. svn: r2214 --- gramps2/ChangeLog | 3 +++ gramps2/src/plugins/Verify.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 1c6b5711a..d015ae15d 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -4,6 +4,9 @@ * src/plugins/FtmStyleDescendants.py (write_report): Change from partial phrases to the complete phrases. Consider all cases (birth date/place, death date/place, gender). Closes 810904, 810905. + * src/plugins/FtmStyleAncestors.py (write_report): Likewise. + * src/plugins/Verify.py (on_apply_clicked): Detect homosexual + marriage only if the spouses' gender is known and equal. 2003-10-06 Don Allingham * src/plugins/WebPage.py: Fixed ID link so that link references are diff --git a/gramps2/src/plugins/Verify.py b/gramps2/src/plugins/Verify.py index d1b60bebf..d6a4f0133 100644 --- a/gramps2/src/plugins/Verify.py +++ b/gramps2/src/plugins/Verify.py @@ -246,8 +246,8 @@ def on_apply_clicked(obj): mother = family.getMother() father = family.getFather() if mother!=None and father!=None: - if mother.getGender() == father.getGender(): - warn.write( _("Homosexual marriage: %s in family %s.\n") % ( idstr, family.getId() ) ) + if ( mother.getGender() == father.getGender() ) and mother.getGender() != RelLib.Person.unknown: + warn.write( _("Homosexual marriage: %s in family %s.\n") % ( idstr, family.getId() ) ) if family.getFather() == person and person.getGender() == RelLib.Person.female: error.write( _("Female husband: %s in family %s.\n") % ( idstr, family.getId() ) ) if family.getMother() == person and person.getGender() == RelLib.Person.male: