7037: proxy crash with complex person filter
filter parameter shadowed the global filter :-) svn: r23183
This commit is contained in:
parent
0908abf1a2
commit
2ad8bb0df2
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user