1 from action_view import edit_action
2 from model.action import *
4 def __init__(self,action):
8 if edit_action(self.action):
9 self.action.status = active
11 def change_status(self):
13 if self.action.status == active:
14 self.action.status = done
15 elif self.action.status == done:
16 self.action.status = inactive
18 self.action.status = active
20 return self.action.__str__()