Beispiel #1
0
 def runtime_init(self):
     StateWS.runtime_init(self)
     memo = self.state_machine.memo
     self.memo = memo
     self.reporter = memo.reporter
     self.inliner = memo.inliner
     self.document = memo.document
     self.parent = self.state_machine.node
     # enable the reporter to determine source and source-line
     if not hasattr(self.reporter, 'locator'):
         self.reporter.locator = self.state_machine.get_source_and_line
Beispiel #2
0
 def __init__(self, state_machine, debug=0):
     self.nested_sm_kwargs = {'state_classes': state_classes,
                              'initial_state': 'Body'}
     StateWS.__init__(self, state_machine, debug)