Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
Plug-in policy for checking access to objects within untrusted code.
    

src/a/c/AccessControl-3.0.8/src/AccessControl/ImplPython.py   AccessControl(Download)
from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.unauthorized import Unauthorized
from AccessControl.interfaces import ISecurityPolicy
from AccessControl.interfaces import ISecurityManager
from AccessControl.SimpleObjectPolicies import Containers

src/a/c/AccessControl-3.0.8/src/AccessControl/tests/testZopeSecurityPolicy.py   AccessControl(Download)
    def test_conforms_to_ISecurityPolicy(self):
        from AccessControl.interfaces import ISecurityPolicy
        from zope.interface.verify import verifyClass
        verifyClass(ISecurityPolicy, self._getTargetClass())