2007-02-05 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/GrampsDb/_GrampsBSDDB.py: load/save db owner info * src/GrampsDb/_DbUtils.py (db_copy): copy also db owner svn: r8057
This commit is contained in:
parent
472e1af1d7
commit
fbe04615f5
@ -1,3 +1,7 @@
|
||||
2007-02-05 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
||||
* src/GrampsDb/_GrampsBSDDB.py: load/save db owner info
|
||||
* src/GrampsDb/_DbUtils.py (db_copy): copy also db owner
|
||||
|
||||
2007-02-04 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
||||
* src/plugins/OwnerEditor.py: include $Id$
|
||||
|
||||
|
@ -273,6 +273,9 @@ def db_copy(from_db,to_db,callback):
|
||||
# Copy name formats
|
||||
to_db.name_formats = from_db.name_formats
|
||||
|
||||
# Copy db owner
|
||||
to_db.owner = from_db.owner
|
||||
|
||||
def set_birth_death_index(db, person):
|
||||
birth_ref_index = -1
|
||||
death_ref_index = -1
|
||||
|
@ -467,6 +467,10 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback):
|
||||
if len(format) == 3:
|
||||
format = format + (True,)
|
||||
self.name_formats[format_ix] = format
|
||||
|
||||
# database owner
|
||||
self.set_researcher(self.metadata.get('researcher', default=self.owner))
|
||||
|
||||
# bookmarks
|
||||
self.bookmarks.set(self.metadata.get('bookmarks',default=[]))
|
||||
self.family_bookmarks.set(self.metadata.get('family_bookmarks',
|
||||
@ -481,6 +485,7 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback):
|
||||
default=[]))
|
||||
self.place_bookmarks.set(self.metadata.get('place_bookmarks',
|
||||
default=[]))
|
||||
|
||||
# Custom type values
|
||||
self.family_event_names = set(self.metadata.get('fevent_names',
|
||||
default=[]))
|
||||
@ -505,6 +510,7 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback):
|
||||
self.url_types = set(self.metadata.get('url_types',default=[]))
|
||||
self.media_attributes = set(self.metadata.get('mattr_names',
|
||||
default=[]))
|
||||
|
||||
# surname list
|
||||
self.surname_list = self.metadata.get('surname_list',default=[])
|
||||
|
||||
@ -989,6 +995,9 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback):
|
||||
|
||||
# name display formats
|
||||
self.metadata.put('name_formats',self.name_formats,txn=the_txn)
|
||||
|
||||
# database owner
|
||||
self.metadata.put('researcher', self.owner, txn=the_txn)
|
||||
|
||||
# bookmarks
|
||||
self.metadata.put('bookmarks',self.bookmarks.get(),txn=the_txn)
|
||||
|
Loading…
Reference in New Issue
Block a user