Replace get_place_handles with iter_place_handles
svn: r12778
This commit is contained in:
@ -235,10 +235,11 @@ class LivingProxyDb(ProxyDbBase):
|
||||
if self.mode == self.MODE_EXCLUDE_ALL:
|
||||
for handle in self.db.iter_person_handles():
|
||||
person = self.db.get_person_from_handle(handle)
|
||||
if not self.__is_living(person):
|
||||
if self.mode == self.MODE_EXCLUDE_ALL:
|
||||
if not self.__is_living(person):
|
||||
yield handle
|
||||
else:
|
||||
yield handle
|
||||
else:
|
||||
return self.db.iter_person_handles()
|
||||
|
||||
def get_place_handles(self, sort_handles=True):
|
||||
"""
|
||||
@ -248,6 +249,13 @@ class LivingProxyDb(ProxyDbBase):
|
||||
"""
|
||||
return self.db.get_place_handles(sort_handles)
|
||||
|
||||
def iter_place_handles(self):
|
||||
"""
|
||||
Return an iterator over database handles, one handle for each Place in
|
||||
the database.
|
||||
"""
|
||||
return self.db.get_place_handles(sort_handles)
|
||||
|
||||
def get_source_handles(self, sort_handles=True):
|
||||
"""
|
||||
Return a list of database handles, one handle for each Source in
|
||||
|
Reference in New Issue
Block a user