diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 87064f2ff..e7180254e 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-11-11 Martin Hawlisch + * test/GrampsDb/GrampsDbTestBase.py: Provide a callback to db.load(). + Hmmm, that worked without sometime back. + 2006-11-10 Alex Roitman * src/GrampsDb/_GrampsInMemDB.py (get_event_cursor): Remove extra definition. diff --git a/gramps2/test/GrampsDb/GrampsDbTestBase.py b/gramps2/test/GrampsDb/GrampsDbTestBase.py index 869921706..ff96271fb 100644 --- a/gramps2/test/GrampsDb/GrampsDbTestBase.py +++ b/gramps2/test/GrampsDb/GrampsDbTestBase.py @@ -25,13 +25,13 @@ class GrampsDbBaseTest(unittest.TestCase): test databases.""" def setUp(self): + def dummy_callback(dummy): + pass self._tmpdir = tempfile.mkdtemp() self._filename = os.path.join(self._tmpdir,'test.grdb') self._db = GrampsDb.gramps_db_factory(const.app_gramps)() - self._db.load(self._filename, - None, # callback - "w") + self._db.load(self._filename, dummy_callback, "w") def tearDown(self): @@ -157,4 +157,3 @@ class GrampsDbBaseTest(unittest.TestCase): RelLib.MediaObject, self._db.add_object, self._db.commit_media_object) -