typo fixes

svn: r6170
This commit is contained in:
Don Allingham
2006-03-18 03:21:03 +00:00
parent 84648709d4
commit 45e12f1a52
5 changed files with 28 additions and 30 deletions

View File

@@ -158,10 +158,10 @@ class FamilyListView(PageView.ListView):
import GrampsDb
mlist = []
self.selection.selected_foreach(self.blist,mlist)
self.selection.selected_foreach(self.blist, mlist)
for handle in mlist:
GrampsDb.remove_family_relationships(handle)
GrampsDb.remove_family_relationships(self.dbstate.db, handle)
self.build_tree()
def edit(self,obj):

View File

@@ -22,7 +22,7 @@
def remove_family_relationships(db, family_handle, trans=None):
family = db.get_family_from_handle(handle)
family = db.get_family_from_handle(family_handle)
if trans == None:
need_commit = True
@@ -34,18 +34,18 @@ def remove_family_relationships(db, family_handle, trans=None):
family.get_mother_handle()]:
if phandle:
person = db.get_person_from_handle(phandle)
person.remove_family_handle(handle)
db.commit_person(person,trans)
person.remove_family_handle(family_handle)
db.commit_person(person, trans)
for phandle in family.get_child_handle_list():
person = db.get_person_from_handle(phandle)
person.remove_parent_family_handle(handle)
db.commit_person(person,trans)
person.remove_parent_family_handle(family_handle)
db.commit_person(person, trans)
db.remove_family(handle,trans)
db.remove_family(family_handle, trans)
if need_commit:
db.transaction_commit(trans,_("Remove Family"))
db.transaction_commit(trans, _("Remove Family"))
def remove_parent_from_family(db, person_handle, family_handle, trans=None):
"""