(self, trigger="", source="*", dest="*")
return [transition
                for transition in transitions
                if (transition.source, transition.dest) == (target_source or transition.source,
                                                            target_dest or transition.dest)]
Return the transitions from the Machine.
        Args:
            trigger (str): Trigger name of the transition.
            source (str, Enum or State): Limits list to transitions from a certain state.
            dest (str, Enum or State): Limits list to transitions to a certain state.
Return the transitions from the Machine.
        Args:
            trigger (str): Trigger name of the transition.
            source (str, Enum or State): Limits list to transitions from a certain state.
            dest (str, Enum or State): Limits list to transitions to a certain state.
Return the transitions from the Machine . Args : trigger ( str ) : Trigger name of the transition . source ( str Enum or State ) : Limits list to transitions from a certain state . dest ( str Enum or State ) : Limits list to transitions to a certain state .
def get_transitions(self, trigger="", source="*", dest="*"):
        """ Return the transitions from the Machine.
        Args:
            trigger (str): Trigger name of the transition.
            source (str, Enum or State): Limits list to transitions from a certain state.
            dest (str, Enum or State): Limits list to transitions to a certain state.
        """
        if trigger:
            try:
                events = (self.events[trigger], )
            except KeyError:
                return []
        else:
            events = self.events.values()
        transitions = []
        for event in events:
            transitions.extend(
                itertools.chain.from_iterable(event.transitions.values()))
        target_source = source.name if hasattr(source, 'name') else source if source != "*" else ""
        target_dest = dest.name if hasattr(dest, 'name') else dest if dest != "*" else ""
        return [transition
                for transition in transitions
                if (transition.source, transition.dest) == (target_source or transition.source,
                                                            target_dest or transition.dest)]
def get_transitions ( self , trigger = "" , source = "*" , dest = "*" ) : if trigger : try : events = ( self . events [ trigger ] , ) except KeyError : return [ ] else : events = self . events . values ( ) transitions = [ ] for event in events : transitions . extend ( itertools . chain . from_iterable ( event . transitions . values ( ) ) ) target_source = source . name if hasattr ( source , 'name' ) else source if source != "*" else "" target_dest = dest . name if hasattr ( dest , 'name' ) else dest if dest != "*" else "" return [ transition for transition in transitions if ( transition . source , transition . dest ) == ( target_source or transition . source , target_dest or transition . dest ) ]