living proxy did not exclude living people with iter_people()

svn: r23085
This commit is contained in:
Doug Blank 2013-09-11 02:13:11 +00:00
parent a584c5dfed
commit 96438738b9

View File

@ -116,9 +116,10 @@ class LivingProxyDb(ProxyDbBase):
Protected version of iter_people
"""
for person in filter(None, self.db.iter_people()):
if not(self.__is_living(person) and
self.mode == self.MODE_EXCLUDE_ALL):
if self.__is_living(person):
if self.mode == self.MODE_EXCLUDE_ALL:
continue
else:
yield self.__restrict_person(person)
else:
yield person