def set_layout(self, layout):
        if layout == self.LAYOUT_BORDERLESS:
            self._table.set_style('borderless')
        elif layout == self.LAYOUT_COMPACT:
            self._table.set_style('compact')
        elif layout == self.LAYOUT_DEFAULT:
            self._table.set_style('default')
        else:
            raise Exception('Invalid table layout "%s".' % layout)

        return self
Checks if a preset exists
dataset/ETHPy150Open sdispater/cleo/cleo/helpers/table_helper.py/TableHelper.set_layout--crossover with--dataset/ETHPy150Open vinyll/django-imagefit/imagefit/models.py/Presets.has