From 3bce7bb1cc418de88b80ca420b8909f642ce7a58 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 23 Apr 2006 21:17:50 +0000 Subject: [PATCH] 2006-04-23 Don Allingham * src/GrampsCfg.py: remove familyview stuff * src/plugins/TestcaseGenerator.py: fix BIRTH, DEATH constants svn: r6421 --- gramps2/ChangeLog | 4 ++++ gramps2/src/GrampsCfg.py | 9 --------- gramps2/src/plugins/TestcaseGenerator.py | 4 ++-- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index d9391b41d..4c58da85b 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-04-23 Don Allingham + * src/GrampsCfg.py: remove familyview stuff + * src/plugins/TestcaseGenerator.py: fix BIRTH, DEATH constants + 2006-04-23 Alex Roitman * src/PluginUtils/_PluginStatus.py (PluginTrace.__init__): Set scrolling policy to auto; diff --git a/gramps2/src/GrampsCfg.py b/gramps2/src/GrampsCfg.py index e1fd470d9..b777cb6ee 100644 --- a/gramps2/src/GrampsCfg.py +++ b/gramps2/src/GrampsCfg.py @@ -234,15 +234,6 @@ class GrampsPreferences: fvbutton.connect('toggled', lambda obj: Config.save_default_view(obj.get_active())) - familyview1 = self.top.get_widget('familyview1') - familyview2 = self.top.get_widget('familyview2') - if Config.get_family_view() == 0: - familyview1.set_active(1) - else: - familyview2.set_active(1) - familyview2.connect('toggled', - lambda obj: Config.save_family_view(obj.get_active())) - usetips = self.top.get_widget('usetips') usetips.set_active(Config.get_usetips()) usetips.connect('toggled', diff --git a/gramps2/src/plugins/TestcaseGenerator.py b/gramps2/src/plugins/TestcaseGenerator.py index 5c15d4c3e..45f2ab6f5 100644 --- a/gramps2/src/plugins/TestcaseGenerator.py +++ b/gramps2/src/plugins/TestcaseGenerator.py @@ -685,7 +685,7 @@ class TestcaseGenerator(Tool.Tool): # now add them as birth to new persons for dateval in dates: bevent = RelLib.Event() - bevent.set_type((RelLib.Event.BIRTH, "Birth")) + bevent.set_type(RelLib.EventType.BIRTH) bevent.set_date_object(dateval) bevent_h = self.db.add_event(bevent,self.trans) self.generated_events.append(bevent_h) @@ -714,7 +714,7 @@ class TestcaseGenerator(Tool.Tool): devent = RelLib.Event() - devent.set_type((RelLib.Event.DEATH,"Death")) + devent.set_type(RelLib.EventType.DEATH) devent.set_date_object(ndate) devent_h = self.db.add_event(devent,self.trans) self.generated_events.append(devent_h)