(self, *args)
return [t for (t, ev) in self.events.items() if any(name in ev.transitions for name in names)]
Collects all triggers FROM certain states.
        Args:
            *args: Tuple of source states.

        Returns:
            list of transition/trigger names.
Collects all triggers FROM certain states.
        Args:
            *args: Tuple of source states.
Collects all triggers FROM certain states . Args : * args : Tuple of source states .
def get_triggers(self, *args):
        """ Collects all triggers FROM certain states.
        Args:
            *args: Tuple of source states.

        Returns:
            list of transition/trigger names.
        """
        names = set([state.name if hasattr(state, 'name') else state for state in args])
        return [t for (t, ev) in self.events.items() if any(name in ev.transitions for name in names)]
def get_triggers ( self , * args ) : names = set ( [ state . name if hasattr ( state , 'name' ) else state for state in args ] ) return [ t for ( t , ev ) in self . events . items ( ) if any ( name in ev . transitions for name in names ) ]