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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
A security manager provides methods for checking access and managing
executable context and policies

src/a/c/AccessControl-3.0.8/src/AccessControl/tests/testZopeGuards.py   AccessControl(Download)
        from AccessControl.SecurityManagement import newSecurityManager
        from AccessControl.SecurityManager import setSecurityPolicy
        from AccessControl.ZopeSecurityPolicy import ZopeSecurityPolicy
 
        class UnderprivilegedUser:
                return ()
 
        self._policy = ZopeSecurityPolicy()
        self._old_policy = setSecurityPolicy(self._policy)