* 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:
Benny Malengier 2007-10-23 20:59:06 +00:00
parent cb3771a715
commit 0bc1336c51
2 changed files with 9 additions and 2 deletions

View File

@ -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.

View File

@ -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])