(self, dst_db, tbl, state, tick_id = None)
Chage state for table.
Chage state for table.
Chage state for table .
def change_table_state(self, dst_db, tbl, state, tick_id = None):
        """Chage state for table."""

        tbl.change_state(state, tick_id)
        self.save_table_state(dst_db.cursor())
        dst_db.commit()

        self.log.info("Table %s status changed to '%s'",
                      tbl.name, tbl.render_state())
def change_table_state ( self , dst_db , tbl , state , tick_id = None ) : tbl . change_state ( state , tick_id ) self . save_table_state ( dst_db . cursor ( ) ) dst_db . commit ( ) self . log . info ( "Table %s status changed to '%s'" , tbl . name , tbl . render_state ( ) )