* src/src/GrampsBSDDB.py (upgrade_7): Handle case of not set default person
svn: r4735
This commit is contained in:
parent
c60570bc9f
commit
c4195cf7ef
@ -1,3 +1,6 @@
|
||||
2005-05-30 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||
* src/src/GrampsBSDDB.py (upgrade_7): Handle case of not set default person
|
||||
|
||||
2005-05-28 Alex Roitman <shura@gramps-project.org>
|
||||
* src/RelLib.py: Delegate event handle reference lookup from
|
||||
Person to EventRef class; (RepoRef.get_handle_referents): Remove
|
||||
|
@ -826,8 +826,12 @@ class GrampsBSDDB(GrampsDbBase):
|
||||
def upgrade_7(self):
|
||||
print "Upgrading to DB version 7"
|
||||
# First, make sure the stored default person handle is str, not unicode
|
||||
handle = self.metadata['default']
|
||||
self.metadata['default'] = str(handle)
|
||||
try:
|
||||
handle = self.metadata['default']
|
||||
self.metadata['default'] = str(handle)
|
||||
except KeyError:
|
||||
# default person was not stored in database
|
||||
pass
|
||||
trans = Transaction("",self)
|
||||
trans.set_batch(True)
|
||||
# Change every source to have reporef_list
|
||||
|
Loading…
Reference in New Issue
Block a user