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

All Samples(131)  |  Call(84)  |  Derive(0)  |  Import(47)
Set the system default security policy.

This method should only be caused by system startup code. It should
never, for example, be called during a web request.

        def setSecurityPolicy(aSecurityPolicy):
    """Set the system default security policy.

    This method should only be caused by system startup code. It should
    never, for example, be called during a web request.
    """
    last = _ImplPython._defaultPolicy
    _ImplPython._defaultPolicy = aSecurityPolicy
    return last
        


src/k/u/kuma-lib-HEAD/packages/ipython/IPython/Extensions/ipy_profile_zope.py   kuma-lib(Download)
        import AccessControl
        from AccessControl.SecurityManagement import newSecurityManager
        from AccessControl.SecurityManager import setSecurityPolicy
 
        _policy = PermissiveSecurityPolicy()
        self.oldpolicy = setSecurityPolicy(_policy)
        import AccessControl
        from AccessControl.SecurityManagement import newSecurityManager, getSecurityManager
        from AccessControl.SecurityManager import setSecurityPolicy
 
        _policy = ZopeSecurityPolicy
        self.oldpolicy = setSecurityPolicy(_policy)

src/i/p/ipython-py3k-HEAD/IPython/deathrow/ipy_profile_zope.py   ipython-py3k(Download)
        import AccessControl
        from AccessControl.SecurityManagement import newSecurityManager
        from AccessControl.SecurityManager import setSecurityPolicy
 
        _policy = PermissiveSecurityPolicy()
        self.oldpolicy = setSecurityPolicy(_policy)
        import AccessControl
        from AccessControl.SecurityManagement import newSecurityManager, getSecurityManager
        from AccessControl.SecurityManager import setSecurityPolicy
 
        _policy = ZopeSecurityPolicy
        self.oldpolicy = setSecurityPolicy(_policy)

src/i/n/instancemanager-1.0/src/instancemanager/pack.py   instancemanager(Download)
    else:
        raise
from AccessControl.SecurityManager import setSecurityPolicy
from Products.CMFCore.tests.base.security import OmnipotentUser
from Products.CMFCore.tests.base.security import PermissiveSecurityPolicy
        self.app = app
        _policy=PermissiveSecurityPolicy()
        _oldpolicy=setSecurityPolicy(_policy)
        newSecurityManager(None,
                           OmnipotentUser().__of__(self.app.acl_users))

src/i/n/instancemanager-1.0/src/instancemanager/changeownership.py   instancemanager(Download)
    else:
        raise
from AccessControl.SecurityManager import setSecurityPolicy
from Products.CMFCore.tests.base.security import OmnipotentUser
from Products.CMFCore.tests.base.security import PermissiveSecurityPolicy
        self.app = app
        _policy=PermissiveSecurityPolicy()
        _oldpolicy=setSecurityPolicy(_policy)
        newSecurityManager(None,
                           OmnipotentUser().__of__(self.app.acl_users))

src/a/c/AccessControl-3.0.8/src/AccessControl/Implementation.py   AccessControl(Download)
            mod.initialize(impl)
 
    from AccessControl.SecurityManager import setSecurityPolicy
    policy = impl.ZopeSecurityPolicy(True, True)
    setSecurityPolicy(policy)

src/c/o/collective.generic.devmode-1.0/src/collective/generic/devmode/common.py   collective.generic.devmode(Download)
    from AccessControl.SecurityManagement import newSecurityManager
    newSecurityManager(None, system)
    from AccessControl.SecurityManager import setSecurityPolicy
    from Products.CMFCore.tests.base.security import PermissiveSecurityPolicy
    _policy = PermissiveSecurityPolicy()
    _oldpolicy = setSecurityPolicy(_policy)

src/p/r/Products.PloneOrg-1.4/scripts/updateMostSchemata.py   Products.PloneOrg(Download)
 
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManager import setSecurityPolicy
from Testing.makerequest import makerequest
from Products.CMFCore.tests.base.security import PermissiveSecurityPolicy, OmnipotentUser
_policy=PermissiveSecurityPolicy()
_oldpolicy=setSecurityPolicy(_policy)

src/i/n/instancemanager-1.0/src/instancemanager/uninstaller.py   instancemanager(Download)
    else:
        raise
from AccessControl.SecurityManager import setSecurityPolicy
from Products.CMFCore.tests.base.security import OmnipotentUser
from Products.CMFCore.tests.base.security import PermissiveSecurityPolicy
        self.app = app
        _policy=PermissiveSecurityPolicy()
        _oldpolicy=setSecurityPolicy(_policy)
        newSecurityManager(None,
                           OmnipotentUser(self.adminUser).__of__(self.app.acl_users))

src/i/n/instancemanager-1.0/src/instancemanager/quickreinstaller.py   instancemanager(Download)
    else:
        raise
from AccessControl.SecurityManager import setSecurityPolicy
from Products.CMFCore.tests.base.security import OmnipotentUser
from Products.CMFCore.tests.base.security import PermissiveSecurityPolicy
                    self.desiredAtctVersion = version
        _policy=PermissiveSecurityPolicy()
        _oldpolicy=setSecurityPolicy(_policy)
        newSecurityManager(None,
                           OmnipotentUser(self.adminUser).__of__(self.app.acl_users))

src/c/o/collective.simplemanagement-HEAD/booking2export.py   collective.simplemanagement(Download)
import sys
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManager import setSecurityPolicy
from Testing.makerequest import makerequest
from Products.CMFCore.tests.base.security import (PermissiveSecurityPolicy,
    """
    _policy = PermissiveSecurityPolicy()
    _oldpolicy = setSecurityPolicy(_policy)
    newSecurityManager(None, OmnipotentUser().__of__(app.acl_users))
    return makerequest(app)

  1 | 2 | 3 | 4 | 5  Next