7037: proxy crash with complex person filter

filter parameter shadowed the global filter :-)

svn: r23184
This commit is contained in:
Vassilii Khachaturov 2013-09-23 15:58:32 +00:00
parent d9b2fa97e9
commit 74ea37f1ba

View File

@ -382,9 +382,9 @@ class ProxyDbBase(DbReadBase):
return filter(self.include_tag, self.db.iter_tag_handles()) return filter(self.include_tag, self.db.iter_tag_handles())
@staticmethod @staticmethod
def __iter_object(filter, method): def __iter_object(selector, method):
""" Helper function to return an iterator over an object class """ """ 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()) method())
def iter_people(self): def iter_people(self):