2007-06-24 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (load): Typo. * src/DbLoader.py (read_file): Fix error reporting. svn: r8650
This commit is contained in:
parent
e978a43d3a
commit
f93fef3422
@ -1,3 +1,7 @@
|
||||
2007-06-24 Alex Roitman <shura@gramps-project.org>
|
||||
* src/GrampsDb/_GrampsBSDDB.py (load): Typo.
|
||||
* src/DbLoader.py (read_file): Fix error reporting.
|
||||
|
||||
2007-06-23 Don Allingham <don@gramps-project.org>
|
||||
* src/LdsUtils.py: switch to parsing an external XML file instead of
|
||||
hard coded values
|
||||
|
@ -460,7 +460,6 @@ class DbLoader:
|
||||
self.dbstate.db.close()
|
||||
except Exception:
|
||||
_LOG.error("Failed to open database.", exc_info=True)
|
||||
|
||||
return True
|
||||
|
||||
def open_saved_as(self, filename, filetype):
|
||||
|
@ -381,6 +381,7 @@ class GrampsBSDDB(GrampsDbBase, UpdateCallback):
|
||||
|
||||
def version_supported(self):
|
||||
dbversion = self.metadata.get('version', default=0)
|
||||
print dbversion
|
||||
return ((dbversion <= _DBVERSION) and (dbversion >= _MINVERSION))
|
||||
|
||||
def need_upgrade(self):
|
||||
@ -434,7 +435,7 @@ class GrampsBSDDB(GrampsDbBase, UpdateCallback):
|
||||
|
||||
# If we cannot work with this DB version,
|
||||
# it makes no sense to go further
|
||||
if not self.version_supported:
|
||||
if not self.version_supported():
|
||||
self.__close_early()
|
||||
|
||||
self.family_map = self.__open_table(self.full_name, "family")
|
||||
|
Loading…
x
Reference in New Issue
Block a user