From 6a46db74815327b3ea8d8f8604f97dbaea8c592b Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 1 Feb 2004 15:30:55 +0000 Subject: [PATCH] * src/plugins/rel_hu.py: Typos. svn: r2744 --- ChangeLog | 3 +++ src/plugins/rel_hu.py | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index e23f7a249..ee57e6fe4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2004-02-01 Alex Roitman + * src/plugins/rel_hu.py: Typos. + 2004-01-31 Egyeki Gergely * src/plugins/rel_hu.py: Update diff --git a/src/plugins/rel_hu.py b/src/plugins/rel_hu.py index c2896be5b..ce84316da 100644 --- a/src/plugins/rel_hu.py +++ b/src/plugins/rel_hu.py @@ -173,17 +173,17 @@ def get_age_sister (level): def is_fathermother_in_law(orig,other): # sp = [] for f in other.getFamilyList(): - if other == f.getFather(): sp = f.getMother - elif other == f.getMother() : sp = f.getFather + if other == f.getFather(): sp = f.getMother() + elif other == f.getMother() : sp = f.getFather() for g in orig.getFamilyList(): - if sp in g.getChildList(): return 1 + if sp in g.getChildList(): return 1 return 0 def get_fathermother_in_law_child(orig,other): # sp = [] for f in other.getFamilyList(): - if other == f.getFather(): sp = f.getMother - elif other == f.getMother() : sp = f.getFather + if other == f.getFather(): sp = f.getMother() + elif other == f.getMother() : sp = f.getFather() for g in orig.getFamilyList(): if sp in g.getChildList(): return [sp] return []