hawat.acl module

This module contains ACL features for Hawat.

hawat.acl.PERMISSIONS = {'admin': <Permission needs={Need(method='role', value='admin')} excludes=set()>, 'any': <Permission needs={Need(method='role', value='developer'), Need(method='role', value='maintainer'), Need(method='role', value='user'), Need(method='role', value='admin')} excludes=set()>, 'developer': <Permission needs={Need(method='role', value='developer')} excludes=set()>, 'maintainer': <Permission needs={Need(method='role', value='maintainer')} excludes=set()>, 'power': <Permission needs={Need(method='role', value='maintainer'), Need(method='role', value='admin')} excludes=set()>, 'user': <Permission needs={Need(method='role', value='user')} excludes=set()>}

Map for accessing permission objects by name.

hawat.acl.PERMISSION_ADMIN = <Permission needs={Need(method='role', value='admin')} excludes=set()>

The flask_principal.Permission permission for users with admin role (ultimate power-user with unrestricted access to the whole system).

hawat.acl.PERMISSION_ANY = <Permission needs={Need(method='role', value='developer'), Need(method='role', value='maintainer'), Need(method='role', value='user'), Need(method='role', value='admin')} excludes=set()>

The concatenated flask_principal.Permission permission for any user role (admin, maintainer, developer or user).

hawat.acl.PERMISSION_DEVELOPER = <Permission needs={Need(method='role', value='developer')} excludes=set()>

The flask_principal.Permission permission for users with developer role (system developers with access to additional development and debugging data output).

hawat.acl.PERMISSION_MAINTAINER = <Permission needs={Need(method='role', value='maintainer')} excludes=set()>

The flask_principal.Permission permission for users with maintainer role (power-users with slightly more restricted access to the system than admin).

hawat.acl.PERMISSION_POWER = <Permission needs={Need(method='role', value='maintainer'), Need(method='role', value='admin')} excludes=set()>

The concatenated flask_principal.Permission permission for any power-user role (admin or maintainer).

hawat.acl.PERMISSION_USER = <Permission needs={Need(method='role', value='user')} excludes=set()>

The flask_principal.Permission permission for regular users with user role.