svn: r6781
This commit is contained in:
Alex Roitman 2006-05-26 00:10:45 +00:00
parent cbc4c8fef5
commit 740a97805a

View File

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