Add files from the old svn, r101.
[matthijs/upstream/mobilegtd.git] / src / gui / project_details / action_widget.py
1 from action_view import edit_action
2 from model.action import *
3 class ActionWidget:
4     def __init__(self,action):
5         self.action = action
6
7     def change(self):
8         if edit_action(self.action):
9             self.action.status = active
10
11     def change_status(self):
12         
13         if self.action.status == active:
14             self.action.status = done
15         elif self.action.status == done:
16             self.action.status = inactive
17         else:
18             self.action.status = active
19     def list_repr(self):
20         return self.action.__str__()