summaryrefslogtreecommitdiff
path: root/main/actions.py
diff options
context:
space:
mode:
authoretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2010-01-19 10:12:38 +0000
committeretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2010-01-19 10:12:38 +0000
commit5ea14e190998e067748bfedec59eb7c268bd50a3 (patch)
tree5316223654a8277c30ece30be565152614b8ee8b /main/actions.py
parent857433958e87438451e937b1d3e54dbb1924e785 (diff)
downloadChimère-5ea14e190998e067748bfedec59eb7c268bd50a3.tar.bz2
Chimère-5ea14e190998e067748bfedec59eb7c268bd50a3.zip
Add a hierarchy to actions - #72
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@48 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
Diffstat (limited to 'main/actions.py')
-rw-r--r--main/actions.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/main/actions.py b/main/actions.py
index 4bd3ea1..d2cd409 100644
--- a/main/actions.py
+++ b/main/actions.py
@@ -29,6 +29,9 @@ class Action:
def __init__(self, id, path, label):
self.id, self.path, self.label = id, EXTRA_URL + path, label
-actions = [Action('view', '', _('View')),
- Action('edit', 'edit', _('Add a new point of interest')),
- Action('edit_route', 'edit_route', _('Add a new route'))]
+actions = ((Action('view', '', _('View')), []),
+ (Action('contribute', 'edit', _('Contribute')),
+ (Action('edit', 'edit', _('Add a new point of interest')),
+ Action('edit_route', 'edit_route', _('Add a new route')))
+ ),
+ )