def send(self, message_id, stm_id, args=[], kwargs={}):
        """
        Send a message to a state machine handled by this driver.

        If you have a reference to the state machine, you can also send it
        directly to it by using `stmpy.Machine.send`.

        `stm_id` must be the id of a state machine earlier added to the driver.
        """
        if stm_id not in Driver._stms_by_id:
            self._logger.warn('Machine with name {} cannot be found. '
                              'Ignoring message {}.'.format(stm_id, message_id))
        else:
            stm = Driver._stms_by_id[stm_id]
            self._add_event(message_id, args, kwargs, stm)
def send ( self , message_id , stm_id , args = [ ] , kwargs = { } ) : if stm_id not in Driver . _stms_by_id : self . _logger . warn ( 'Machine with name {} cannot be found. ' 'Ignoring message {}.' . format ( stm_id , message_id ) ) else : stm = Driver . _stms_by_id [ stm_id ] self . _add_event ( message_id , args , kwargs , stm )
Send a message to a state machine handled by this driver.

        If you have a reference to the state machine, you can also send it
        directly to it by using `stmpy.Machine.send`.

        `stm_id` must be the id of a state machine earlier added to the driver.