7037: proxy crash with complex person filter

reapply to trunk after retest by Mirko

svn: r23204
This commit is contained in:
Vassilii Khachaturov 2013-09-26 20:32:53 +00:00
parent d29ea3775f
commit 93170f1e2a

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