* src/plugins/all_relations.py: refractor, use class
	* src/Relationship.py: further improvements
	* src/plugins/rel_pl.py: rename procedure to avoid conflict
	* src/plugins/rel_it.py: start of changes
	* src/DisplayState.py: use the new method get_one_relation



svn: r9308
This commit is contained in:
Benny Malengier
2007-11-06 10:44:17 +00:00
parent 013b725dc1
commit 7f973965e7
6 changed files with 697 additions and 293 deletions

View File

@@ -445,7 +445,7 @@ class RelationshipCalculator(Relationship.RelationshipCalculator):
else:
return _niece_level_of_sisters_daughter[level]
def get_relationship_distance(self,db,orig_person,other_person):
def get_relationship_distance_pl(self,db,orig_person,other_person):
"""
Returns a tuple (firstRel,secondRel,common):
@@ -509,7 +509,7 @@ class RelationshipCalculator(Relationship.RelationshipCalculator):
return (is_spouse,[])
(firstRel,secondRel,common,firstList,secondList) = \
self.get_relationship_distance(db,orig_person,other_person)
self.get_relationship_distance_pl(db,orig_person,other_person)
if type(common) == types.StringType or \
type(common) == types.UnicodeType: