2007-12-20 Benny Malengier <benny.malengier@gramps-project.org>

* src/plugins/rel_pt.py: RelLib -> gen.lib



svn: r9548
This commit is contained in:
Benny Malengier 2007-12-20 19:20:35 +00:00
parent e41dfdb411
commit 5f2bc1b3ec
2 changed files with 12 additions and 9 deletions

View File

@ -1,3 +1,6 @@
2007-12-20 Benny Malengier <benny.malengier@gramps-project.org>
* src/plugins/rel_pt.py: RelLib -> gen.lib
2007-12-19 Benny Malengier <benny.malengier@gramps-project.org>
* src/Editors/_EditPrimary.py:
* src/Editors/_EditPlace.py:

View File

@ -276,47 +276,47 @@ class RelationshipCalculator(Relationship.RelationshipCalculator):
if firstRel == 0:
if secondRel == 0:
return ('',common)
elif other_person.get_gender() == RelLib.Person.MALE:
elif other_person.get_gender() == gen.lib.Person.MALE:
return (self.get_father(secondRel),common)
else:
return (self.get_mother(secondRel),common)
elif secondRel == 0:
if other_person.get_gender() == RelLib.Person.MALE:
if other_person.get_gender() == gen.lib.Person.MALE:
return (self.get_son(firstRel),common)
else:
return (self.get_daughter(firstRel),common)
elif firstRel == 1:
if other_person.get_gender() == RelLib.Person.MALE:
if other_person.get_gender() == gen.lib.Person.MALE:
return (self.get_uncle(secondRel),common)
else:
return (self.get_aunt(secondRel),common)
elif secondRel == 1:
if other_person.get_gender() == RelLib.Person.MALE:
if other_person.get_gender() == gen.lib.Person.MALE:
return (self.get_nephew(firstRel-1),common)
else:
return (self.get_niece(firstRel-1),common)
elif firstRel == 2 and secondRel == 2:
if other_person.get_gender() == RelLib.Person.MALE:
if other_person.get_gender() == gen.lib.Person.MALE:
return ('primo irmão',common)
else:
return ('prima irmã',common)
elif firstRel == secondRel:
if other_person.get_gender() == RelLib.Person.MALE:
if other_person.get_gender() == gen.lib.Person.MALE:
return (self.get_male_cousin(firstRel-1),common)
else:
return (self.get_female_cousin(firstRel-1),common)
elif firstRel == secondRel+1:
if other_person.get_gender() == RelLib.Person.MALE:
if other_person.get_gender() == gen.lib.Person.MALE:
return (self.get_distant_nephew(secondRel),common)
else:
return (self.get_distant_niece(secondRel),common)
elif firstRel+1 == secondRel:
if other_person.get_gender() == RelLib.Person.MALE:
if other_person.get_gender() == gen.lib.Person.MALE:
return (self.get_distant_uncle(firstRel),common)
else:
return (self.get_distant_aunt(firstRel),common)
else:
if other_person.get_gender() == RelLib.Person.MALE:
if other_person.get_gender() == gen.lib.Person.MALE:
return (self.get_male_relative(firstRel,secondRel),common)
else:
return (self.get_female_relative(firstRel,secondRel),common)