def __call__(self, modelObjects):
        if not self.text:
            return modelObjects

        # In non-report views, we can only search the primary column
        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)]
Return the model objects that contain our text in one of the columns to consider
dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/lib/oldOlv/Filter.py/TextSearch.__call__