From 74ea37f1badac6618486c5d09beba3934fa96ae0 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Mon, 23 Sep 2013 15:58:32 +0000 Subject: [PATCH] 7037: proxy crash with complex person filter filter parameter shadowed the global filter :-) svn: r23184 --- gramps/gen/proxy/proxybase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gen/proxy/proxybase.py b/gramps/gen/proxy/proxybase.py index 9cde1cde6..3d703b58e 100644 --- a/gramps/gen/proxy/proxybase.py +++ b/gramps/gen/proxy/proxybase.py @@ -382,9 +382,9 @@ class ProxyDbBase(DbReadBase): return filter(self.include_tag, self.db.iter_tag_handles()) @staticmethod - def __iter_object(filter, method): + def __iter_object(selector, method): """ Helper function to return an iterator over an object class """ - return filter(lambda obj: (filter is None or list(filter(obj.handle))), + return filter(lambda obj: (selector is None or list(selector(obj.handle))), method()) def iter_people(self):