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

All Samples(290)  |  Call(161)  |  Derive(0)  |  Import(129)

        def noSecurityManager():
    try: del _managers[get_ident()]
    except: pass
        


src/e/r/erp5-HEAD/product/CMFActivity/ActivityTool.py   erp5(Download)
from AccessControl import ClassSecurityInfo, Permissions
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from AccessControl.SecurityManagement import setSecurityManager
from AccessControl.SecurityManagement import getSecurityManager
      LOG("CMFActivity", WARNING,
          "Unable to find user %r in the portal" % user_name)
      noSecurityManager()
    return user
 

src/p/r/Products.DigestoContentTypes-1.2a1/Products/DigestoContentTypes/content/Normativa.py   Products.DigestoContentTypes(Download)
# Security imports
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.SecurityManagement import setSecurityManager

src/a/c/AccessControl-3.0.8/src/AccessControl/userfolder.py   AccessControl(Download)
from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from AccessControl.users import User
from AccessControl.users import _remote_user_mode
                        return 1
            except:
                noSecurityManager()
                raise
        except Unauthorized:

src/p/l/plone.app.async-1.6/src/plone/app/async/service.py   plone.app.async(Download)
 
from zExceptions import BadRequest
from AccessControl.SecurityManagement import noSecurityManager,\
    newSecurityManager, getSecurityManager
from AccessControl.User import SpecialUser
            raise
    finally:
        noSecurityManager()
        setSite(None)
        app._p_jar.close()

src/p/l/plone.app.async-1.6/src/plone/app/async/job.py   plone.app.async(Download)
import zc.async.job
import Zope2
from AccessControl.SecurityManagement import noSecurityManager,\
    newSecurityManager, getSecurityManager
from AccessControl.User import SpecialUser
    def tearDown(self, setup_info):
        del tldata.app
        noSecurityManager()
        setSite(setup_info)
 

src/p/r/Products.PluggableAuthService-1.10.0/Products/PluggableAuthService/PluggableAuthService.py   Products.PluggableAuthService(Download)
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from AccessControl.Permissions import manage_users as ManageUsers
from AccessControl.User import nobody
                        return 1
            except:
                noSecurityManager()
                raise
 

src/z/o/Zope-HEAD/src/Zope2/App/startup.py   Zope(Download)
import ZPublisher
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from Acquisition import aq_acquire
from Acquisition import aq_base
 
    # "Log off" as system user
    noSecurityManager()
 
    global startup_time

src/z/o/Zope2-2.13.22/src/Zope2/App/startup.py   Zope2(Download)
 
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from Acquisition import aq_acquire
from Acquisition import aq_base
 
    # "Log off" as system user
    noSecurityManager()
 
    global startup_time

src/c/o/collective.synchro-1.0.2/collective/synchro/scripts/import_queue.py   collective.synchro(Download)
 
        from AccessControl.SecurityManagement import newSecurityManager
        from AccessControl.SecurityManagement import noSecurityManager
 
        admin_username = 'adminimporter'
        import transaction
        transaction.commit()
        noSecurityManager()
 
 

src/c/y/cyn.in-HEAD/src/ubify.policy/ubify/policy/migration/migration.py   cyn.in(Download)
def getAdminUser(portal):
    from AccessControl.SecurityManagement import noSecurityManager
    from AccessControl.SecurityManagement import newSecurityManager
    adminUser = portal.getParentNode().acl_users.getUserById('admin')
    newSecurityManager(None,adminUser)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next