2004-11-05 Tim Waugh <twaugh@redhat.com>

* src/plugins/Ancestors.py: Include non-marriage relationships.


svn: r3706
This commit is contained in:
Tim Waugh 2004-11-05 11:30:00 +00:00
parent 98efd5e5e1
commit 8b966449a7
2 changed files with 16 additions and 15 deletions

View File

@ -1,9 +1,7 @@
2004-11-05 Tim Waugh <twaugh@redhat.com>
* src/StartupDialog.py: Fixed typo (gtk.quit -> gtk.main_quit).
* src/plugins/Ancestors.py: Include non-marriage relationships.
* src/plugins/Ancestors.py: Fixed "relationship"/"marriage"
confusion when the relationship type is "Married" but there is no
marriage event (i.e. no other details are known).
* src/StartupDialog.py: Fixed typo (gtk.quit -> gtk.main_quit).
2004-11-02 Don Allingham <dallingham@users.sourceforge.net>
* src/gramps_main.py (Gramps.redraw_histmenu): use GRAMPS

View File

@ -720,16 +720,16 @@ class ComprehensiveAncestorsReport (Report.Report):
count += 1
relationship = family.get_relationship ()
if const.save_frel(relationship) == "Married":
marriage = None
for event_handle in family.get_event_list():
if event_handle:
event = self.database.get_event_from_handle(event_handle)
if event.get_name() == "Marriage":
marriage = event
break
else:
continue
if marriage:
if not first_rel:
if gender == RelLib.Person.female:
ret += _(' She later married %(name)s') % \
@ -748,6 +748,7 @@ class ComprehensiveAncestorsReport (Report.Report):
ret += _(' He married %(name)s') % \
{'name': self.person_name (spouse_handle)}
if marriage:
ret += self.event_info (marriage)
else: # Not a marriage
if not first_rel:
@ -765,7 +766,9 @@ class ComprehensiveAncestorsReport (Report.Report):
ret += _(' He had a relationship with %(name)s') % \
{'name': self.person_name (spouse_handle)}
ret += children + '.'
ret += children
if ret and not ret.endswith ("."):
ret += '.'
first_rel = 0