* src/AddSpouse.py: remove unused callbacks
* src/FamilyView.py: remove unused callbacks svn: r4280
This commit is contained in:
parent
c4fbd798bd
commit
9ed7d79704
@ -1,3 +1,7 @@
|
|||||||
|
2005-04-01 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/AddSpouse.py: remove unused callbacks
|
||||||
|
* src/FamilyView.py: remove unused callbacks
|
||||||
|
|
||||||
2005-04-01 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
2005-04-01 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||||
* src/plugins/TestcaseGenerator.py: Small changes to family generation
|
* src/plugins/TestcaseGenerator.py: Small changes to family generation
|
||||||
* src/plugins/StatisticsChart.py: Added statistics for Surnames,
|
* src/plugins/StatisticsChart.py: Added statistics for Surnames,
|
||||||
|
@ -68,21 +68,17 @@ class AddSpouse:
|
|||||||
family with the passed person as one spouse, and another person to
|
family with the passed person as one spouse, and another person to
|
||||||
be selected.
|
be selected.
|
||||||
"""
|
"""
|
||||||
def __init__(self,parent,db,person,update,addperson,family=None):
|
def __init__(self,parent,db,person,family=None):
|
||||||
"""
|
"""
|
||||||
Displays the AddSpouse dialog box.
|
Displays the AddSpouse dialog box.
|
||||||
|
|
||||||
db - database to which to add the new family
|
db - database to which to add the new family
|
||||||
person - the current person, will be one of the parents
|
person - the current person, will be one of the parents
|
||||||
update - function that updates the family display
|
|
||||||
addperson - function that adds a person to the person view
|
|
||||||
"""
|
"""
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
self.db = db
|
self.db = db
|
||||||
self.update = update
|
|
||||||
self.person = person
|
self.person = person
|
||||||
self.gender = self.person.get_gender()
|
self.gender = self.person.get_gender()
|
||||||
self.addperson = addperson
|
|
||||||
self.active_family = family
|
self.active_family = family
|
||||||
|
|
||||||
self.filter_func = self.likely_filter
|
self.filter_func = self.likely_filter
|
||||||
@ -289,7 +285,6 @@ class AddSpouse:
|
|||||||
self.db.transaction_commit(trans,_("Add Spouse"))
|
self.db.transaction_commit(trans,_("Add Spouse"))
|
||||||
|
|
||||||
Utils.destroy_passed_object(obj)
|
Utils.destroy_passed_object(obj)
|
||||||
self.update(self.active_family)
|
|
||||||
m = Marriage.Marriage(self.parent, self.active_family, self.parent.db)
|
m = Marriage.Marriage(self.parent, self.active_family, self.parent.db)
|
||||||
m.on_add_clicked()
|
m.on_add_clicked()
|
||||||
|
|
||||||
|
@ -663,14 +663,9 @@ class FamilyView:
|
|||||||
if self.person:
|
if self.person:
|
||||||
try:
|
try:
|
||||||
if self.selected_spouse:
|
if self.selected_spouse:
|
||||||
Marriage.Marriage(
|
Marriage.Marriage(self.parent,self.family,self.parent.db)
|
||||||
self.parent,self.family,self.parent.db,
|
|
||||||
self.parent.new_after_edit, self.load_family,
|
|
||||||
self.parent.source_view.build_tree)
|
|
||||||
else:
|
else:
|
||||||
AddSpouse.AddSpouse(self.parent,self.parent.db,self.person,
|
AddSpouse.AddSpouse(self.parent,self.parent.db,self.person,
|
||||||
self.load_family,
|
|
||||||
self.parent.people_view.redisplay_person_list,
|
|
||||||
self.family)
|
self.family)
|
||||||
except:
|
except:
|
||||||
DisplayTrace.DisplayTrace()
|
DisplayTrace.DisplayTrace()
|
||||||
@ -679,9 +674,7 @@ class FamilyView:
|
|||||||
if not self.person:
|
if not self.person:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
AddSpouse.AddSpouse(self.parent, self.parent.db, self.person,
|
AddSpouse.AddSpouse(self.parent, self.parent.db, self.person)
|
||||||
self.load_family,
|
|
||||||
self.parent.people_view.redisplay_person_list)
|
|
||||||
except:
|
except:
|
||||||
DisplayTrace.DisplayTrace()
|
DisplayTrace.DisplayTrace()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user