From a41aaee3ba14f40484b9307f8577c795e72655a8 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 21 Dec 2005 20:06:30 +0000 Subject: [PATCH] * src/EventEdit.py: Use more descriptive menu label. * src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Convert witness comment to the EventRef note for old witness_by_ID references. svn: r5606 --- gramps2/ChangeLog | 4 +++- gramps2/src/GrampsDb/_GrampsBSDDB.py | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 8f1d76a55..e28b0fa3f 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -10,7 +10,9 @@ * src/DisplayState.py: Factor out recursive action function. * src/EditPerson.py: Use person handle to identify the window. - * src/EventEdit.py: Use more descriptive menu label. + * src/EventEdit.py: Use more descriptive menu label. + * src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Convert witness + comment to the EventRef note for old witness_by_ID references. 2005-12-21 Richard Taylor * src/EditSource.py: fixed small mistake in display_references diff --git a/gramps2/src/GrampsDb/_GrampsBSDDB.py b/gramps2/src/GrampsDb/_GrampsBSDDB.py index b7987d94a..fe578257a 100644 --- a/gramps2/src/GrampsDb/_GrampsBSDDB.py +++ b/gramps2/src/GrampsDb/_GrampsBSDDB.py @@ -1220,6 +1220,9 @@ class GrampsBSDDB(GrampsDbBase): event_ref = EventRef() event_ref.ref = event.handle event_ref.role = (EventRef.WITNESS,'') + # Add comment + if witness.comment: + event_ref.set_note(witness.comment) person = self.get_person_from_handle(witness.val) person.event_ref_list.append(event_ref) self.commit_person(person,trans)