(self, model, *args, **kwargs)
return self._process(event_data)
Internal trigger function called by the ``Machine`` instance. This should not
        be called directly but via the public method ``Machine.process``.
        Args:
            model (object): The currently processed model
            args and kwargs: Optional positional or named arguments that will
                be passed onto the EventData object, enabling arbitrary state
                information to be passed on to downstream triggered functions.
        Returns: boolean indicating whether or not a transition was
            successfully executed (True if successful, False if not).
Internal trigger function called by the ``Machine`` instance. This should not
        be called directly but via the public method ``Machine.process``.
        Args:
            model (object): The currently processed model
            args and kwargs: Optional positional or named arguments that will
                be passed onto the EventData object, enabling arbitrary state
                information to be passed on to downstream triggered functions.
        Returns: boolean indicating whether or not a transition was
            successfully executed (True if successful, False if not).
Internal trigger function called by the Machine instance . This should not be called directly but via the public method Machine . process . Args : model ( object ) : The currently processed model args and kwargs : Optional positional or named arguments that will be passed onto the EventData object enabling arbitrary state information to be passed on to downstream triggered functions . Returns : boolean indicating whether or not a transition was successfully executed ( True if successful False if not ) .
def _trigger(self, model, *args, **kwargs):
        """ Internal trigger function called by the ``Machine`` instance. This should not
        be called directly but via the public method ``Machine.process``.
        Args:
            model (object): The currently processed model
            args and kwargs: Optional positional or named arguments that will
                be passed onto the EventData object, enabling arbitrary state
                information to be passed on to downstream triggered functions.
        Returns: boolean indicating whether or not a transition was
            successfully executed (True if successful, False if not).
        """
        state = self.machine.get_model_state(model)
        if state.name not in self.transitions:
            msg = "%sCan't trigger event %s from state %s!" % (self.machine.name, self.name,
                                                               state.name)
            ignore = state.ignore_invalid_triggers if state.ignore_invalid_triggers is not None \
                else self.machine.ignore_invalid_triggers
            if ignore:
                _LOGGER.warning(msg)
                return False
            else:
                raise MachineError(msg)
        event_data = EventData(state, self, self.machine, model, args=args, kwargs=kwargs)
        return self._process(event_data)
def _trigger ( self , model , * args , * * kwargs ) : state = self . machine . get_model_state ( model ) if state . name not in self . transitions : msg = "%sCan't trigger event %s from state %s!" % ( self . machine . name , self . name , state . name ) ignore = state . ignore_invalid_triggers if state . ignore_invalid_triggers is not None else self . machine . ignore_invalid_triggers if ignore : _LOGGER . warning ( msg ) return False else : raise MachineError ( msg ) event_data = EventData ( state , self , self . machine , model , args = args , kwargs = kwargs ) return self . _process ( event_data )