__init__.py 1.4 KB
Newer Older
1
##############################################################################
matt@zope.com's avatar
matt@zope.com committed
2
#
3
# Copyright (c) 2002 Zope Corporation and Contributors. All Rights Reserved.
4
#
matt@zope.com's avatar
matt@zope.com committed
5
# This software is subject to the provisions of the Zope Public License,
6
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
matt@zope.com's avatar
matt@zope.com committed
7 8 9 10
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
11
#
12
##############################################################################
13

14
from unauthorized import Unauthorized
15

16
# This has to happen early so things get initialized properly
17
from AccessControl.Implementation import setImplementation
18

19 20 21 22 23 24 25 26
from AccessControl.SecurityManagement import getSecurityManager, setSecurityPolicy
from AccessControl.SecurityInfo import ClassSecurityInfo, ModuleSecurityInfo
from AccessControl.SecurityInfo import ACCESS_PRIVATE
from AccessControl.SecurityInfo import ACCESS_PUBLIC
from AccessControl.SecurityInfo import ACCESS_NONE
from AccessControl.SecurityInfo import secureModule, allow_module, allow_class
from AccessControl.SimpleObjectPolicies import allow_type
from AccessControl.ZopeGuards import full_write_guard, safe_builtins
27

28
ModuleSecurityInfo('AccessControl').declarePublic('getSecurityManager')
29

30
from AccessControl import DTML
31
del DTML