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:
Alex Roitman 2007-06-24 20:03:40 +00:00
parent e978a43d3a
commit f93fef3422
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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):

View File

@ -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")