Replace get_place_handles with iter_place_handles

svn: r12778
This commit is contained in:
Gerald Britton
2009-07-08 18:11:02 +00:00
parent b601f4bdf2
commit 181c0c9b41
11 changed files with 46 additions and 12 deletions

View File

@ -241,6 +241,16 @@ class PrivateProxyDb(ProxyDbBase):
handles.append(handle)
return handles
def iter_place_handles(self):
"""
Return an iterator over database handles, one handle for each Place in
the database.
"""
for handle in self.db.get_place_handles(sort_handles):
place = self.db.get_place_from_handle(handle)
if not place.get_privacy():
yield handle
def get_source_handles(self, sort_handles=True):
"""
Return a list of database handles, one handle for each Source in