2004-11-05 Tim Waugh <twaugh@redhat.com>
* src/plugins/Ancestors.py: Include non-marriage relationships. svn: r3706
This commit is contained in:
parent
98efd5e5e1
commit
8b966449a7
@ -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
|
||||
|
@ -720,16 +720,16 @@ class ComprehensiveAncestorsReport (Report.Report):
|
||||
|
||||
count += 1
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
if marriage:
|
||||
if not first_rel:
|
||||
if gender == RelLib.Person.female:
|
||||
ret += _(' She later married %(name)s') % \
|
||||
@ -748,7 +748,8 @@ class ComprehensiveAncestorsReport (Report.Report):
|
||||
ret += _(' He married %(name)s') % \
|
||||
{'name': self.person_name (spouse_handle)}
|
||||
|
||||
ret += self.event_info (marriage)
|
||||
if marriage:
|
||||
ret += self.event_info (marriage)
|
||||
else: # Not a marriage
|
||||
if not first_rel:
|
||||
if gender == RelLib.Person.female:
|
||||
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user