fix r10099 oversight, also improve callback_test.py

svn: r10140
This commit is contained in:
James G Sack 2008-02-29 05:15:00 +00:00
parent 979ea11f3d
commit 54faf32fee
3 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008--2-28 Jim Sack <jgsack@san.rr.com>
* src/GrampsDbUtils/_GedcomParse.py fix oversight from r10099
where eprefix was changed to event_prefix in gen/db/base.py
(problem detected with unittest gramps_cli_test.py .. yay!)
* src/gen/utils/test/callback_test.py fix unittest that had
assumed the existence of a global that need not exist
2008-02-28 Benny Malengier <benny.malengier@gramps-project.org>
* src/DataViews/PersonView.py: don't crash on click, 1794
* src/PageView.py: don't crash on click, #1794

View File

@ -264,7 +264,7 @@ class GedcomParser(UpdateCallback):
self.maxpeople = stage_one.get_person_count()
self.dbase = dbase
self.emapper = GedcomUtils.IdFinder(dbase.get_gramps_ids(EVENT_KEY),
dbase.eprefix)
dbase.event_prefix)
self.famc_map = stage_one.get_famc_map()
self.fams_map = stage_one.get_fams_map()

View File

@ -5,6 +5,12 @@ tu.path_append_parent()
from gen.utils import Callback
try:
log
except NameError:
log = None
class TestCallback(unittest.TestCase):
def test_simple(self):