privacy flag and comment to the privacy flag and note of the new

EventRef for old witness_by_ID references.


svn: r5608
This commit is contained in:
Alex Roitman 2005-12-21 20:15:45 +00:00
parent 611cdd48da
commit 73c8bdd045
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,8 @@
* src/EditPerson.py: Use person handle to identify the window. * 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 * src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Convert witness
comment to the EventRef note for old witness_by_ID references. privacy flag and comment to the privacy flag and note of the new
EventRef for old witness_by_ID references.
2005-12-21 Richard Taylor <rjt-gramps@thegrindstone.me.uk> 2005-12-21 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
* src/EditSource.py: fixed small mistake in display_references * src/EditSource.py: fixed small mistake in display_references

View File

@ -1220,7 +1220,8 @@ class GrampsBSDDB(GrampsDbBase):
event_ref = EventRef() event_ref = EventRef()
event_ref.ref = event.handle event_ref.ref = event.handle
event_ref.role = (EventRef.WITNESS,'') event_ref.role = (EventRef.WITNESS,'')
# Add comment # Add privacy and comment
event_ref.private = witness.private
if witness.comment: if witness.comment:
event_ref.set_note(witness.comment) event_ref.set_note(witness.comment)
person = self.get_person_from_handle(witness.val) person = self.get_person_from_handle(witness.val)