* src/plugins/rel_hu.py: Typos.

svn: r2744
This commit is contained in:
Alex Roitman 2004-02-01 15:30:55 +00:00
parent 2d1d9384b4
commit 6a46db7481
2 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,6 @@
2004-02-01 Alex Roitman <shura@alex.neuro.umn.edu>
* src/plugins/rel_hu.py: Typos.
2004-01-31 Egyeki Gergely <egeri@elte.hu> 2004-01-31 Egyeki Gergely <egeri@elte.hu>
* src/plugins/rel_hu.py: Update * src/plugins/rel_hu.py: Update

View File

@ -173,17 +173,17 @@ def get_age_sister (level):
def is_fathermother_in_law(orig,other): def is_fathermother_in_law(orig,other):
# sp = [] # sp = []
for f in other.getFamilyList(): for f in other.getFamilyList():
if other == f.getFather(): sp = f.getMother if other == f.getFather(): sp = f.getMother()
elif other == f.getMother() : sp = f.getFather elif other == f.getMother() : sp = f.getFather()
for g in orig.getFamilyList(): for g in orig.getFamilyList():
if sp in g.getChildList(): return 1 if sp in g.getChildList(): return 1
return 0 return 0
def get_fathermother_in_law_child(orig,other): def get_fathermother_in_law_child(orig,other):
# sp = [] # sp = []
for f in other.getFamilyList(): for f in other.getFamilyList():
if other == f.getFather(): sp = f.getMother if other == f.getFather(): sp = f.getMother()
elif other == f.getMother() : sp = f.getFather elif other == f.getMother() : sp = f.getFather()
for g in orig.getFamilyList(): for g in orig.getFamilyList():
if sp in g.getChildList(): return [sp] if sp in g.getChildList(): return [sp]
return [] return []