diff --git a/ChangeLog b/ChangeLog index 83eef394f..7b722867d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-06-24 Alex Roitman + * src/GrampsDb/_GrampsBSDDB.py (load): Typo. + * src/DbLoader.py (read_file): Fix error reporting. + 2007-06-23 Alex Roitman * src/plugins/RemoveUnused.py: Rewrite with single-dialog UI. * src/plugins/unused.glade: Add new file. diff --git a/src/DbLoader.py b/src/DbLoader.py index d0020a95b..68def4be8 100644 --- a/src/DbLoader.py +++ b/src/DbLoader.py @@ -461,8 +461,8 @@ class DbLoader: _("Could not open file: %s") % filename, str(msg[1])) except Exception, msg: - QuestionDialog.ErrorDialog( - _("Could not open file: %s") % filename, msg[0] ) + QuestionDialog.ErrorDialog( + _("Could not open file: %s") % filename,str(msg) ) return True def open_saved_as(self, filename, filetype): diff --git a/src/GrampsDb/_GrampsBSDDB.py b/src/GrampsDb/_GrampsBSDDB.py index 05dcd973f..25c9e49ad 100644 --- a/src/GrampsDb/_GrampsBSDDB.py +++ b/src/GrampsDb/_GrampsBSDDB.py @@ -311,6 +311,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): @@ -385,7 +386,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")