svn: r6781
This commit is contained in:
Alex Roitman 2006-05-26 00:10:45 +00:00
parent 8d487a92b6
commit 15c41c168d

View File

@ -888,8 +888,9 @@ class SameSexFamily(FamilyRule):
def broken(self):
mother = get_mother(self.db,self.obj)
father = get_father(self.db,self.obj)
same_sex = (mother.get_gender() == father.get_gender())
unknown_sex = (mother.get_gender() == RelLib.Person.UNKNOWN)
same_sex = (mother and father and
(mother.get_gender() == father.get_gender()))
unknown_sex = (mother and mother.get_gender() == RelLib.Person.UNKNOWN)
return (same_sex and not unknown_sex)
def get_message(self):