#!/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'))]