Implement iter_people_handles methods and begin to use them - second batch of updates

svn: r12774
This commit is contained in:
Gerald Britton
2009-07-07 18:58:47 +00:00
parent 7a235029d8
commit 2769b58a44
10 changed files with 11 additions and 14 deletions

View File

@@ -161,7 +161,7 @@ class MergePlaces(ManagedWindow.ManagedWindow):
# replace references in other objetcs
# people
for handle in self.db.get_person_handles(sort_handles=False):
for handle in self.db.iter_person_handles():
person = self.db.get_person_from_handle(handle)
if person.has_handle_reference('Place',self.old_handle):
person.replace_handle_reference('Place',

View File

@@ -165,7 +165,7 @@ class MergeSources(ManagedWindow.ManagedWindow):
# replace handles
# people
for handle in self.db.get_person_handles(sort_handles=False):
for handle in self.db.iter_person_handles():
person = self.db.get_person_from_handle(handle)
if person.has_source_reference(self.old_handle):
person.replace_source_references(self.old_handle,