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:
parent
678e032007
commit
da7d2b7986
@ -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>
|
2007-06-23 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/plugins/RemoveUnused.py: Rewrite with single-dialog UI.
|
* src/plugins/RemoveUnused.py: Rewrite with single-dialog UI.
|
||||||
* src/plugins/unused.glade: Add new file.
|
* src/plugins/unused.glade: Add new file.
|
||||||
|
@ -461,8 +461,8 @@ class DbLoader:
|
|||||||
_("Could not open file: %s") % filename,
|
_("Could not open file: %s") % filename,
|
||||||
str(msg[1]))
|
str(msg[1]))
|
||||||
except Exception, msg:
|
except Exception, msg:
|
||||||
QuestionDialog.ErrorDialog(
|
QuestionDialog.ErrorDialog(
|
||||||
_("Could not open file: %s") % filename, msg[0] )
|
_("Could not open file: %s") % filename,str(msg) )
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def open_saved_as(self, filename, filetype):
|
def open_saved_as(self, filename, filetype):
|
||||||
|
@ -311,6 +311,7 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback):
|
|||||||
|
|
||||||
def version_supported(self):
|
def version_supported(self):
|
||||||
dbversion = self.metadata.get('version',default=0)
|
dbversion = self.metadata.get('version',default=0)
|
||||||
|
print dbversion
|
||||||
return ((dbversion <= _DBVERSION) and (dbversion >= _MINVERSION))
|
return ((dbversion <= _DBVERSION) and (dbversion >= _MINVERSION))
|
||||||
|
|
||||||
def need_upgrade(self):
|
def need_upgrade(self):
|
||||||
@ -385,7 +386,7 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback):
|
|||||||
|
|
||||||
# If we cannot work with this DB version,
|
# If we cannot work with this DB version,
|
||||||
# it makes no sense to go further
|
# it makes no sense to go further
|
||||||
if not self.version_supported:
|
if not self.version_supported():
|
||||||
self._close_early()
|
self._close_early()
|
||||||
|
|
||||||
self.family_map = self.open_table(self.full_name, "family")
|
self.family_map = self.open_table(self.full_name, "family")
|
||||||
|
Loading…
Reference in New Issue
Block a user