zope.security.simplepolicies

Simple zope.security.interfaces.ISecurityPolicy implementations.

As a reminder, ISecurityPolicy objects are factories for producing zope.security.interfaces.IInteraction objects. That means that the classes themselves are implementations of ISecurityPolicy.

class zope.security.simplepolicies.ParanoidSecurityPolicy(*participations)[source]

Bases: object

Prohibit all access by any non-system principal, unless the item is public.

This means that if there are no participations (and hence no principals), then access is allowed.

class zope.security.simplepolicies.PermissiveSecurityPolicy(*participations)[source]

Bases: zope.security.simplepolicies.ParanoidSecurityPolicy

Allow all access.