From de5633bc975aad61d28ade5f96bf4af854657a6a Mon Sep 17 00:00:00 2001 From: Paul McGuire Date: Mon, 27 May 2019 20:36:04 -0500 Subject: Fine tuning of statemachine example, moving InvalidStateTransition declaration inside generated class; added video state machine demo; added vending machine state machine demo showing how to using statemachine without importing a .pystate file --- examples/statemachine/documentSignoffDemo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/statemachine/documentSignoffDemo.py') diff --git a/examples/statemachine/documentSignoffDemo.py b/examples/statemachine/documentSignoffDemo.py index 0cbfc1f..2ca38c8 100644 --- a/examples/statemachine/documentSignoffDemo.py +++ b/examples/statemachine/documentSignoffDemo.py @@ -11,7 +11,7 @@ print('\n'.join(t.__name__ for t in documentsignoffstate.DocumentRevisionState.t class Document(documentsignoffstate.DocumentRevisionStateMixin): def __init__(self): - self.initialize_state(documentsignoffstate.New()) + self.initialize_state(documentsignoffstate.New) def run_demo(): -- cgit v1.2.1