added function isInTransition() so we don't have to query myFsm.state

This commit is contained in:
Josh Wilson 2007-03-05 03:04:55 +00:00
parent 3c401daec1
commit fbeb4d6c3f

View File

@ -187,6 +187,9 @@ class FSM(DirectObject):
return self.state return self.state
return self.newState return self.newState
def isInTransition(self):
return self.state == None
def forceTransition(self, request, *args): def forceTransition(self, request, *args):
"""Changes unconditionally to the indicated state. This """Changes unconditionally to the indicated state. This
bypasses the filterState() function, and just calls bypasses the filterState() function, and just calls