stalker.models.mixins.ACLMixin

Inheritance diagram of stalker.models.mixins.ACLMixin
class stalker.models.mixins.ACLMixin[source]

Bases: object

A Mixin for adding ACLs to mixed in class.

Access control lists or ACLs are used to determine if the given resource has the permission to access the given data. It is based on Pyramids Authorization system but organized to fit in Stalker style.

The ACLMixin adds an attribute called permissions and a property called __acl__ to be able to pass the permission data to Pyramid framework.

__init__()

x.__init__(…) initializes x; see help(type(x)) for signature

Attributes

ACLMixin.permissions