(self, model, trigger_name, *args, **kwargs)
return event.trigger(model, *args, **kwargs)
Convenience function added to the model to trigger events by name.
        Args:
            model (object): Model with assigned event trigger.
            trigger_name (str): Name of the trigger to be called.
            *args: Variable length argument list which is passed to the triggered event.
            **kwargs: Arbitrary keyword arguments which is passed to the triggered event.
        Returns:
            bool: True if a transitions has been conducted or the trigger event has been queued.
Convenience function added to the model to trigger events by name.
        Args:
            model (object): Model with assigned event trigger.
            trigger_name (str): Name of the trigger to be called.
            *args: Variable length argument list which is passed to the triggered event.
            **kwargs: Arbitrary keyword arguments which is passed to the triggered event.
        Returns:
            bool: True if a transitions has been conducted or the trigger event has been queued.
Convenience function added to the model to trigger events by name . Args : model ( object ) : Model with assigned event trigger . trigger_name ( str ) : Name of the trigger to be called . * args : Variable length argument list which is passed to the triggered event . ** kwargs : Arbitrary keyword arguments which is passed to the triggered event . Returns : bool : True if a transitions has been conducted or the trigger event has been queued .
def _get_trigger(self, model, trigger_name, *args, **kwargs):
        """Convenience function added to the model to trigger events by name.
        Args:
            model (object): Model with assigned event trigger.
            trigger_name (str): Name of the trigger to be called.
            *args: Variable length argument list which is passed to the triggered event.
            **kwargs: Arbitrary keyword arguments which is passed to the triggered event.
        Returns:
            bool: True if a transitions has been conducted or the trigger event has been queued.
        """
        try:
            event = self.events[trigger_name]
        except KeyError:
            state = self.get_model_state(model)
            ignore = state.ignore_invalid_triggers if state.ignore_invalid_triggers is not None \
                else self.ignore_invalid_triggers
            if not ignore:
                raise AttributeError("Do not know event named '%s'." % trigger_name)
            return False
        return event.trigger(model, *args, **kwargs)
def _get_trigger ( self , model , trigger_name , * args , * * kwargs ) : try : event = self . events [ trigger_name ] except KeyError : state = self . get_model_state ( model ) ignore = state . ignore_invalid_triggers if state . ignore_invalid_triggers is not None else self . ignore_invalid_triggers if not ignore : raise AttributeError ( "Do not know event named '%s'." % trigger_name ) return False return event . trigger ( model , * args , * * kwargs )