

def __call__(self, modelObjects):
    '\n        Return the model objects that contain our text in one of the columns to consider\n        '
    if (not self.text):
        return modelObjects
    if self.objectListView.InReportView():
        cols = (self.columns or self.objectListView.columns)
    else:
        cols = [self.objectListView.columns[0]]
    textToFind = self.text.lower()

    def _containsText(modelObject):
        for col in cols:
            if (textToFind in col.GetStringValue(modelObject).lower()):
                return True
        return False
    return [x for x in modelObjects if _containsText(x)]

dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/lib/oldOlv/Filter.py TextSearch.__call__/original