(self, *args)
return _super(HierarchicalMachine, self).get_triggers(*states)
Extends transitions.core.Machine.get_triggers to also include parent state triggers.
Extends transitions.core.Machine.get_triggers to also include parent state triggers.
Extends transitions . core . Machine . get_triggers to also include parent state triggers .
def get_triggers(self, *args):
        """ Extends transitions.core.Machine.get_triggers to also include parent state triggers. """
        # add parents to state set
        states = []
        for state_name in args:
            state = self.get_state(state_name)
            while state.parent:
                states.append(state.parent.name)
                state = state.parent
        states.extend(args)
        return _super(HierarchicalMachine, self).get_triggers(*states)
def get_triggers ( self , * args ) : # add parents to state set states = [ ] for state_name in args : state = self . get_state ( state_name ) while state . parent : states . append ( state . parent . name ) state = state . parent states . extend ( args ) return _super ( HierarchicalMachine , self ) . get_triggers ( * states )