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