Skip to content

Commit

Permalink
Cross refs for simplepolicies.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Sep 14, 2017
1 parent 1d1aef0 commit f7b02bd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
7 changes: 3 additions & 4 deletions docs/api/simplepolicies.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
:mod:`zope.security.simplepolicies`
===================================
==============================
zope.security.simplepolicies
==============================

.. automodule:: zope.security.simplepolicies
:members:
:member-order: bysource
11 changes: 9 additions & 2 deletions src/zope/security/simplepolicies.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Simple 'ISecurityPolicy' implementations.
"""
Simple :class:`zope.security.interfaces.ISecurityPolicy` implementations.
As a reminder, ``ISecurityPolicy`` objects are factories for producing
:class:`zope.security.interfaces.IInteraction` objects. That means
that the classes themselves are implementations of
``ISecurityPolicy``.
"""
import zope.interface

Expand All @@ -25,7 +31,8 @@
@zope.interface.provider(ISecurityPolicy)
class ParanoidSecurityPolicy(object):
"""
Prohibit all access by any non-system principal, unless the item is public.
Prohibit all access by any non-system principal, unless the item
is :data:`public <zope.security.checker.CheckerPublic>`.
This means that if there are no participations (and hence no
principals), then access is allowed.
Expand Down

0 comments on commit f7b02bd

Please sign in to comment.