From 2ad8bb0df2ba397157e708bc0f8d00ecdfa9f59b Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Mon, 23 Sep 2013 15:56:46 +0000 Subject: [PATCH] 7037: proxy crash with complex person filter filter parameter shadowed the global filter :-) svn: r23183 --- 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 f6cbe3194..d16770ca6 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):