Ejemplo n.º 1
0
 def do(self, action_name):
     """ marks off that an action has been completed. not marking off all planned actions (or any unplanned ones) will result in an error """
     action = Action(action_name)
     self.actions_taken.append(action)
     Callbacks().on_do(self, action)
Ejemplo n.º 2
0
 def do(self, what):
     """ marks off that an action has been completed. not marking off all planned actions (or any unplanned ones) will result in an error """
     self.actions_taken.append(Action(what))
Ejemplo n.º 3
0
 def needs(self, action_name):
     """ declares than an action 'should' take place during an apply step """
     action = Action(action_name)
     self.actions_planned.append(action)
     Callbacks().on_needs(self, action)
Ejemplo n.º 4
0
 def needs(self, action_name):
     """ declares than an action 'should' take place during an apply step """
     self.actions_planned.append(Action(action_name))