(version_supported): Default to the current version.

svn: r8655
This commit is contained in:
Alex Roitman 2007-06-25 01:45:18 +00:00
parent ef570f2d69
commit 0f68a84452
2 changed files with 3 additions and 3 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 Alex Roitman <shura@gramps-project.org>

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
# Copyright (C) 2000-2007 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -310,8 +310,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):