def __init__(self, datas=None):
        """
        Creates tables from data.
        :param datas: one of
            - list : list of tables content. The order is the one of sorted(TABLES.keys())
            - dict : {table_name : table_content }
        """
        if type(datas) is dict:
            for table_name, table_data in datas.items():
                table = self._get_table(table_name, table_data)
                setattr(self, table_name, table)

        elif type(datas) is list:
            for i, table_name in enumerate(sorted(self.TABLES.keys())):
                table = self._get_table(table_name, datas[i])
                setattr(self, table_name, table)
def __init__ ( self , datas = None ) : if type ( datas ) is dict : for table_name , table_data in datas . items ( ) : table = self . _get_table ( table_name , table_data ) setattr ( self , table_name , table ) elif type ( datas ) is list : for i , table_name in enumerate ( sorted ( self . TABLES . keys ( ) ) ) : table = self . _get_table ( table_name , datas [ i ] ) setattr ( self , table_name , table )
Creates tables from data.
        :param datas: one of
            - list : list of tables content. The order is the one of sorted(TABLES.keys())
            - dict : {table_name : table_content }