summaryrefslogtreecommitdiff
path: root/main/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'main/actions.py')
-rw-r--r--main/actions.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/actions.py b/main/actions.py
new file mode 100644
index 0000000..385b53c
--- /dev/null
+++ b/main/actions.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+"""
+Actions available in the main interface
+"""
+from django.utils.translation import ugettext_lazy as _
+from django.contrib.auth import models
+
+main_path = 'chimere/'
+
+class Action:
+ def __init__(self, id, path, label):
+ self.id, self.path, self.label = id, main_path + path, label
+
+actions = [Action('view', '', _('View')), Action('edit', 'edit', _('Add'))]