From 621615bbd1df3735a032b08a9767d4beb202e867 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 11 Sep 2013 02:12:40 +0000 Subject: [PATCH] living proxy did not exclude living people with iter_people() svn: r23084 --- 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