2007-06-24 Alex Roitman <shura@gramps-project.org>

* src/GrampsDb/_GrampsBSDDB.py (load): Typo.
	* src/DbLoader.py (read_file): Fix error reporting.



svn: r8649
This commit is contained in:
Alex Roitman 2007-06-24 20:01:50 +00:00
parent 678e032007
commit da7d2b7986
3 changed files with 8 additions and 3 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 Alex Roitman <shura@gramps-project.org>
* src/plugins/RemoveUnused.py: Rewrite with single-dialog UI.
* src/plugins/unused.glade: Add new file.

View File

@ -462,7 +462,7 @@ class DbLoader:
str(msg[1]))
except Exception, msg:
QuestionDialog.ErrorDialog(
_("Could not open file: %s") % filename, msg[0] )
_("Could not open file: %s") % filename,str(msg) )
return True
def open_saved_as(self, filename, filetype):

View File

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