7037: proxy crash with complex person filter

filter parameter shadowed the global filter :-)

svn: r23183
This commit is contained in:
Vassilii Khachaturov 2013-09-23 15:56:46 +00:00
parent 0908abf1a2
commit 2ad8bb0df2

View File

@ -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):