* various: transactions are now required for commits
svn: r3186
This commit is contained in:
@ -218,7 +218,7 @@ class EditSource:
|
||||
if sref.get_base_id() == self.source.get_id():
|
||||
p_addr_list.append((name,v.get_street()))
|
||||
for object_id in self.db.get_object_keys():
|
||||
object = self.db.find_object_from_id(object_id)
|
||||
object = self.db.find_object_from_id(object_id,None)
|
||||
name = object.get_description()
|
||||
for sref in object.get_source_references():
|
||||
if sref.get_base_id() == self.source.get_id():
|
||||
@ -228,9 +228,9 @@ class EditSource:
|
||||
f_id = family.get_father_id()
|
||||
m_id = family.get_mother_id()
|
||||
if f_id:
|
||||
f = self.db.find_person_from_id(f_id)
|
||||
f = self.db.find_person_from_id(f_id,None)
|
||||
if m_id:
|
||||
m = self.db.find_person_from_id(m_id)
|
||||
m = self.db.find_person_from_id(m_id,None)
|
||||
if f_id and m_id:
|
||||
name = _("%(father)s and %(mother)s") % {
|
||||
"father" : GrampsCfg.nameof(f),
|
||||
@ -404,7 +404,7 @@ class DelSrcQuery:
|
||||
self.db.commit_family(p,trans)
|
||||
|
||||
for p_id in self.db.get_object_keys():
|
||||
p = self.db.find_object_from_id(p_id)
|
||||
p = self.db.find_object_from_id(p_id,trans)
|
||||
if self.delete_source(p):
|
||||
self.db.commit_media_object(p,trans)
|
||||
|
||||
|
Reference in New Issue
Block a user