projects
/
matthijs
/
upstream
/
mobilegtd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d562671bb5f154c6bb1a070c70e2da76302ece14
[matthijs/upstream/mobilegtd.git]
/
context_widget.py
1
from model.action import Action
2
from action_view import edit_action
3
class ContextWidget:
4
def __init__(self,context,project):
5
self.context = context
6
self.project = project
7
def change(self):
8
a = Action(self.project.name,self.context,self.project)
9
if edit_action(a):
10
self.project.add_action(a)
11
def list_repr(self):
12
return u'@%s'%self.context