* src/plugins/RelCalc.py: better comment, issue #1181
2007-10-23 Benny Malengier <benny.malengier@gramps-project.org> svn: r9238
This commit is contained in:
parent
cb3771a715
commit
0bc1336c51
@ -1,3 +1,6 @@
|
||||
2007-10-23 Benny Malengier <benny.malengier@gramps-project.org>
|
||||
* src/plugins/RelCalc.py: better comment, issue #1181
|
||||
|
||||
2007-10-23 Benny Malengier <benny.malengier@gramps-project.org>
|
||||
* src/Relationship.py: new algorithm to calculate relation
|
||||
* src/plugins/all_relations.py: begin of quick report to show extended relationship.
|
||||
|
@ -157,8 +157,12 @@ class RelCalc(Tool.Tool, ManagedWindow.ManagedWindow):
|
||||
commontext = ""
|
||||
elif length == 1:
|
||||
person = self.db.get_person_from_handle(common[0])
|
||||
name = name_displayer.display(person)
|
||||
commontext = " " + _("Their common ancestor is %s.") % name
|
||||
if common[0] == other_person.handle or \
|
||||
common[0] == self.person.handle :
|
||||
commontext = ''
|
||||
else :
|
||||
name = name_displayer.display(person)
|
||||
commontext = " " + _("Their common ancestor is %s.") % name
|
||||
elif length == 2:
|
||||
p1 = self.db.get_person_from_handle(common[0])
|
||||
p2 = self.db.get_person_from_handle(common[1])
|
||||
|
Loading…
Reference in New Issue
Block a user