* src/plugins/NarrativeWeb.py:

* src/ReportBase/_ReportUtils.py:
Fix 0000956: Event order within GRAMPS not replicated in web report

svn: r8278
This commit is contained in:
Brian Matherly
2007-03-07 03:15:45 +00:00
parent 1736120c61
commit 8ab1d729aa
3 changed files with 33 additions and 35 deletions

View File

@@ -1266,6 +1266,14 @@ def sanitize_person(db,person):
# set complete flag
new_person.set_marker(person.get_marker())
# copy event list
for event_ref in person.get_event_ref_list():
if event_ref and event_ref.get_privacy() == False:
event = db.get_event_from_handle(event_ref.ref)
if not event.get_privacy():
new_person.add_event_ref(event_ref)
# Copy birth and death after event list to maintain the order.
# copy birth event
event_ref = person.get_birth_ref()
if event_ref and event_ref.get_privacy() == False:
@@ -1280,13 +1288,6 @@ def sanitize_person(db,person):
if not event.get_privacy():
new_person.set_death_ref(event_ref)
# copy event list
for event_ref in person.get_event_ref_list():
if event_ref and event_ref.get_privacy() == False:
event = db.get_event_from_handle(event_ref.ref)
if not event.get_privacy():
new_person.add_event_ref(event_ref)
# copy address list
for address in person.get_address_list():
if not address.get_privacy():