2007-11-06 Benny Malengier <benny.malengier@gramps-project.org>
* 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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user