def _check_no_current_table(new_obj, current_table):
    if current_table is None:
        msg = 'Cannot add {} before adding table'
        if isinstance(new_obj, Relation):
            raise NoCurrentTableException(msg.format('relation'))
        if isinstance(new_obj, Column):
            raise NoCurrentTableException(msg.format('column'))
Set disabled state of all list items in a ListControl.
dataset/ETHPy150Open Alexis-benoist/eralchemy/eralchemy/parser.py/_check_no_current_table--crossover with--dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/samples-and-tests/i-am-a-developer/mechanize/ClientForm.py/ListControl.set_all_items_disabled