def filter(self, table, tenants, filter_string):
        # FIXME(gabriel): This should be smarter. Written for demo purposes.
        q = filter_string.lower()

        def comp(tenant):
            if q in tenant.name.lower():
                return True
            return False

        return filter(comp, tenants)
Really naive case-insensitive search.
dataset/ETHPy150Open openstack/horizon/openstack_dashboard/dashboards/identity/projects/tables.py/TenantFilterAction.filter