7037: proxy crash with complex person filter

svn: r23200
This commit is contained in:
Vassilii Khachaturov 2013-09-25 22:23:37 +00:00
parent f8009903c7
commit 17bb3fa639

View File

@ -384,7 +384,7 @@ class ProxyDbBase(DbReadBase):
@staticmethod
def __iter_object(selector, method):
""" 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())
def iter_people(self):