2006-04-23 Don Allingham <don@gramps-project.org>

* src/GrampsCfg.py: remove familyview stuff
	* src/plugins/TestcaseGenerator.py: fix BIRTH, DEATH constants



svn: r6421
This commit is contained in:
Don Allingham 2006-04-23 21:17:50 +00:00
parent 0f1dd36ca3
commit 3bce7bb1cc
3 changed files with 6 additions and 11 deletions

View File

@ -1,3 +1,7 @@
2006-04-23 Don Allingham <don@gramps-project.org>
* src/GrampsCfg.py: remove familyview stuff
* src/plugins/TestcaseGenerator.py: fix BIRTH, DEATH constants
2006-04-23 Alex Roitman <shura@gramps-project.org> 2006-04-23 Alex Roitman <shura@gramps-project.org>
* src/PluginUtils/_PluginStatus.py (PluginTrace.__init__): Set * src/PluginUtils/_PluginStatus.py (PluginTrace.__init__): Set
scrolling policy to auto; scrolling policy to auto;

View File

@ -234,15 +234,6 @@ class GrampsPreferences:
fvbutton.connect('toggled', fvbutton.connect('toggled',
lambda obj: Config.save_default_view(obj.get_active())) 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 = self.top.get_widget('usetips')
usetips.set_active(Config.get_usetips()) usetips.set_active(Config.get_usetips())
usetips.connect('toggled', usetips.connect('toggled',

View File

@ -685,7 +685,7 @@ class TestcaseGenerator(Tool.Tool):
# now add them as birth to new persons # now add them as birth to new persons
for dateval in dates: for dateval in dates:
bevent = RelLib.Event() bevent = RelLib.Event()
bevent.set_type((RelLib.Event.BIRTH, "Birth")) bevent.set_type(RelLib.EventType.BIRTH)
bevent.set_date_object(dateval) bevent.set_date_object(dateval)
bevent_h = self.db.add_event(bevent,self.trans) bevent_h = self.db.add_event(bevent,self.trans)
self.generated_events.append(bevent_h) self.generated_events.append(bevent_h)
@ -714,7 +714,7 @@ class TestcaseGenerator(Tool.Tool):
devent = RelLib.Event() devent = RelLib.Event()
devent.set_type((RelLib.Event.DEATH,"Death")) devent.set_type(RelLib.EventType.DEATH)
devent.set_date_object(ndate) devent.set_date_object(ndate)
devent_h = self.db.add_event(devent,self.trans) devent_h = self.db.add_event(devent,self.trans)
self.generated_events.append(devent_h) self.generated_events.append(devent_h)