(self, event_data)
return _super(NestedTransition, self).execute(event_data)
Extends transitions.core.transitions to handle nested states.
Extends transitions.core.transitions to handle nested states.
Extends transitions . core . transitions to handle nested states .
def execute(self, event_data):
        """ Extends transitions.core.transitions to handle nested states. """
        if self.dest is None:
            return _super(NestedTransition, self).execute(event_data)
        dest_state = event_data.machine.get_state(self.dest)
        while dest_state.initial:
            dest_state = event_data.machine.get_state(dest_state.initial)
        self.dest = dest_state.name
        return _super(NestedTransition, self).execute(event_data)
def execute ( self , event_data ) : if self . dest is None : return _super ( NestedTransition , self ) . execute ( event_data ) dest_state = event_data . machine . get_state ( self . dest ) while dest_state . initial : dest_state = event_data . machine . get_state ( dest_state . initial ) self . dest = dest_state . name return _super ( NestedTransition , self ) . execute ( event_data )