From 5257824b635dbb8921e470df8e085b87d40336f7 Mon Sep 17 00:00:00 2001 From: Zsolt Foldvari Date: Tue, 27 Mar 2007 20:39:42 +0000 Subject: [PATCH] * src/GrampsDbUtils/_ReadGrdb.py (importData): include missing Note table; handle Note bookmarks. 2007-03-27 Zsolt Foldvari svn: r8327 --- ChangeLog | 4 ++++ src/GrampsDbUtils/_ReadGrdb.py | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index bfaf1bf91..b64cbea36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-03-27 Zsolt Foldvari + * src/GrampsDbUtils/_ReadGrdb.py (importData): include missing Note + table; handle Note bookmarks. + 2007-03-27 Zsolt Foldvari * src/GrampsDb/_GrampsDbBase.py: add note_bookmarks. * src/DataViews/_NoteView.py: 'add' and 'remove' functionalities added. diff --git a/src/GrampsDbUtils/_ReadGrdb.py b/src/GrampsDbUtils/_ReadGrdb.py index 565d66790..731e62f8d 100644 --- a/src/GrampsDbUtils/_ReadGrdb.py +++ b/src/GrampsDbUtils/_ReadGrdb.py @@ -147,6 +147,14 @@ def importData(database, filename, callback=None,cl=0,use_trans=True): other_database.get_repository_from_handle, 'other_table': other_database.repository_map, }, + 'Note' : {'table': database.note_map, + 'id_table': database.nid_trans, + 'add_obj': database.add_note, + 'find_next_gramps_id': database.find_next_note_gramps_id, + 'other_get_from_handle': + other_database.get_note_from_handle, + 'other_table': other_database.note_map, + }, } uc = UpdateCallback(callback) @@ -195,6 +203,7 @@ def importData(database, filename, callback=None,cl=0,use_trans=True): database.place_bookmarks.append_list(other_database.place_bookmarks.get()) database.media_bookmarks.append_list(other_database.media_bookmarks.get()) database.repo_bookmarks.append_list(other_database.repo_bookmarks.get()) + database.note_bookmarks.append_list(other_database.note_bookmarks.get()) # close the other database and clean things up other_database.close()