From 96438738b946c978a186ad9bf94f187f350bf8ac Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 11 Sep 2013 02:13:11 +0000 Subject: [PATCH] living proxy did not exclude living people with iter_people() svn: r23085 --- gramps/gen/proxy/living.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gramps/gen/proxy/living.py b/gramps/gen/proxy/living.py index 21db54396..4db8cf45c 100644 --- a/gramps/gen/proxy/living.py +++ b/gramps/gen/proxy/living.py @@ -116,10 +116,11 @@ 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): - - yield self.__restrict_person(person) + if self.__is_living(person): + if self.mode == self.MODE_EXCLUDE_ALL: + continue + else: + yield self.__restrict_person(person) else: yield person