* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Skip broken witness.
svn: r6511
This commit is contained in:
parent
3ce932ea76
commit
08821556e9
@ -10,6 +10,7 @@
|
|||||||
expand and collapse all node menu entries
|
expand and collapse all node menu entries
|
||||||
|
|
||||||
2006-05-01 Alex Roitman <shura@gramps-project.org>
|
2006-05-01 Alex Roitman <shura@gramps-project.org>
|
||||||
|
* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Skip broken witness.
|
||||||
* src/GrampsDb/_GrampsDbBase.py (find_backlink_handles): Correctly
|
* src/GrampsDb/_GrampsDbBase.py (find_backlink_handles): Correctly
|
||||||
loop over all primary classes looking for a given handle.
|
loop over all primary classes looking for a given handle.
|
||||||
* src/RelLib/_Source.py (serialize, unserialize): properly save
|
* src/RelLib/_Source.py (serialize, unserialize): properly save
|
||||||
|
@ -1496,18 +1496,19 @@ class GrampsBSDDB(GrampsDbBase):
|
|||||||
% witness.comment
|
% witness.comment
|
||||||
event.set_note(note_text)
|
event.set_note(note_text)
|
||||||
elif witness.type == 1: # witness ID recorded
|
elif witness.type == 1: # witness ID recorded
|
||||||
# Add an EventRef from that person
|
|
||||||
# to this event using ROLE_WITNESS role
|
|
||||||
event_ref = EventRef()
|
|
||||||
event_ref.ref = event.handle
|
|
||||||
event_ref.role.set(EventRoleType.WITNESS)
|
|
||||||
# Add privacy and comment
|
|
||||||
event_ref.private = witness.private
|
|
||||||
if witness.comment:
|
|
||||||
event_ref.set_note(witness.comment)
|
|
||||||
person = self.get_person_from_handle(witness.val)
|
person = self.get_person_from_handle(witness.val)
|
||||||
person.event_ref_list.append(event_ref)
|
if person:
|
||||||
self.commit_person(person,trans)
|
# Add an EventRef from that person
|
||||||
|
# to this event using ROLE_WITNESS role
|
||||||
|
event_ref = EventRef()
|
||||||
|
event_ref.ref = event.handle
|
||||||
|
event_ref.role.set(EventRoleType.WITNESS)
|
||||||
|
# Add privacy and comment
|
||||||
|
event_ref.private = witness.private
|
||||||
|
if witness.comment:
|
||||||
|
event_ref.set_note(witness.comment)
|
||||||
|
person.event_ref_list.append(event_ref)
|
||||||
|
self.commit_person(person,trans)
|
||||||
self.commit_event(event,trans)
|
self.commit_event(event,trans)
|
||||||
current += 1
|
current += 1
|
||||||
self.update(100*current/length)
|
self.update(100*current/length)
|
||||||
|
Loading…
Reference in New Issue
Block a user