From 1d553ae96dcc185e54cb9832203f6bb42ebda79b Mon Sep 17 00:00:00 2001 From: Jason Madden Date: Mon, 20 Aug 2018 15:02:44 -0500 Subject: Add ``ISystemPrincipal`` and make ``system_user`` a regular object that implements it This facilitates adding adapter registrations for the system user. --- src/zope/security/management.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/zope/security/management.py') diff --git a/src/zope/security/management.py b/src/zope/security/management.py index 0c037d0..1acc3d3 100644 --- a/src/zope/security/management.py +++ b/src/zope/security/management.py @@ -26,8 +26,21 @@ from zope.security.interfaces import ISecurityManagement from zope.security.interfaces import NoInteraction from zope.security.simplepolicies import ParanoidSecurityPolicy from zope.security._definitions import thread_local -from zope.security._definitions import system_user # API? - +from zope.security._definitions import system_user + + +__all__ = [ + 'system_user', + 'getSecurityPolicy', + 'setSecurityPolicy', + 'queryInteraction', + 'getInteraction', + 'ExistingInteraction', + 'newInteraction', + 'endInteraction', + 'restoreInteraction', + 'checkPermission', +] _defaultPolicy = ParanoidSecurityPolicy -- cgit v1.2.1