All pastes #209448 Raw Edit

Someone

public python v1 · immutable
#209448 ·published 2006-10-19 05:01 UTC
rendered paste body
# callback basedclass BatchProcess(Item):    def processIt(self):        chain = RunChain(store=self.store, initialStep=self)        chain.addStep(BatchStep1(store=self.store))        chain.addStep(BatchStep2(store=self.store))# state basedclass BatchProcess(Item):    step = integer(step=0)    def drive(self):        self.step += 1        getattr(self, "step_%d")()    def step_1(self):        ...    def step_2(self):        ...