blob: 385b53cc8de256ce105e08192021eae794f35750 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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'))]
|