Files
mayan-edms/mayan/apps/acls/apps.py
Roberto Rosario 1e746c700a PEP8 cleanups.
2015-07-27 23:53:14 -04:00

25 lines
653 B
Python

from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from common import MayanAppConfig, menu_object, menu_sidebar
from .links import link_acl_new, link_acl_delete, link_acl_permissions
from .models import AccessControlList
class ACLsApp(MayanAppConfig):
name = 'acls'
verbose_name = _('ACLs')
def ready(self):
super(ACLsApp, self).ready()
menu_object.bind_links(
links=[link_acl_permissions, link_acl_delete],
sources=[AccessControlList]
)
menu_sidebar.bind_links(
links=[link_acl_new], sources=['acls:acl_list']
)