(version_supported): Default to the current version.

svn: r8656
This commit is contained in:
Alex Roitman 2007-06-25 01:46:37 +00:00
parent 5a9535b7d1
commit d5f5b3a602
2 changed files with 2 additions and 2 deletions

View File

@ -8,6 +8,7 @@
2007-06-24 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (load): Typo.
(version_supported): Default to the current version.
* src/DbLoader.py (read_file): Fix error reporting.
2007-06-23 Don Allingham <don@gramps-project.org>

View File

@ -380,8 +380,7 @@ class GrampsBSDDB(GrampsDbBase, UpdateCallback):
self.metadata.sync()
def version_supported(self):
dbversion = self.metadata.get('version', default=0)
print dbversion
dbversion = self.metadata.get('version',default=_DBVERSION)
return ((dbversion <= _DBVERSION) and (dbversion >= _MINVERSION))
def need_upgrade(self):