added function isInTransition() so we don't have to query myFsm.state
This commit is contained in:
parent
3c401daec1
commit
fbeb4d6c3f
|
|
@ -187,6 +187,9 @@ class FSM(DirectObject):
|
|||
return self.state
|
||||
return self.newState
|
||||
|
||||
def isInTransition(self):
|
||||
return self.state == None
|
||||
|
||||
def forceTransition(self, request, *args):
|
||||
"""Changes unconditionally to the indicated state. This
|
||||
bypasses the filterState() function, and just calls
|
||||
|
|
|
|||
Loading…
Reference in New Issue