def setXition(self, func):
      """ Sets the state to transitionto upon seeing Transition event"""
#      next_state = self.sTable.nextStates[self._current_state][func.__name__]
      next_state = self._current_state.nextStates[func.__name__]
      if next_state is not None:
         self._next_state = next_state
 Sets the state to transitionto upon seeing Transition event
recipes/Python/576613_Easy_State_Pattern__support_implementing_state/recipe-576613.py