projects
/
matthijs
/
upstream
/
mobilegtd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix ListView to make sense.
[matthijs/upstream/mobilegtd.git]
/
src
/
gui
/
project_details
/
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