7037: proxy crash with complex person filter
svn: r23200
This commit is contained in:
parent
f8009903c7
commit
17bb3fa639
@ -384,7 +384,7 @@ class ProxyDbBase(DbReadBase):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def __iter_object(selector, 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: (selector is None or list(selector(obj.handle))),
|
return filter(lambda obj: ((selector is None) or selector(obj.handle)),
|
||||||
method())
|
method())
|
||||||
|
|
||||||
def iter_people(self):
|
def iter_people(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user