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

All Samples(271)  |  Call(158)  |  Derive(0)  |  Import(113)
install *manager* as current security manager for this thread.

        def setSecurityManager(manager):
    """install *manager* as current security manager for this thread."""
    thread_id=get_ident()
    _managers[thread_id]=manager
        


src/p/l/plone.multilingualbehavior-HEAD/plone/multilingualbehavior/subscriber.py   plone.multilingualbehavior(Download)
# -*- coding: utf-8 -*-
from AccessControl import getSecurityManager
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import setSecurityManager
from AccessControl.User import UnrestrictedUser
        finally:
            # Restore the old security manager
            setSecurityManager(sm)
 
    def reindex_translation(self, translation):

src/e/a/easyshop.order-0.1a1/easyshop/order/adapters/order_management.py   easyshop.order(Download)
# Zope imports
from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import setSecurityManager
from AccessControl.User import UnrestrictedUser as BaseUnrestrictedUser
 
        ## Reset security manager
        setSecurityManager(old_sm)
 
        # Index with customer again

src/f/t/ftw.downloadtoken-1.0.0/ftw/downloadtoken/browser/downloadfile.py   ftw.downloadtoken(Download)
    def __exit__(self, _exc_type, _exc_value, _traceback):
        AccessControl.SecurityManagement.setSecurityManager(
            self._original_security)
        self._original_security = None
 

src/p/o/poi.receivemail-1.11/poi/receivemail/poimail.py   poi.receivemail(Download)
from AccessControl import Unauthorized
from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.SecurityManagement import setSecurityManager
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.User import UnrestrictedUser
 
        # Restore original security manager
        setSecurityManager(sm)
        return mail
 

src/r/e/RemOpenID-0.9/topp/remopenid/plugin.py   RemOpenID(Download)
        mem_folder = pf._getTempFolder(memtype)
        mem = mem_folder.restrictedTraverse(login)
        AccessControl.SecurityManagement.setSecurityManager(orig_sec_mgr)
        return mem
 

src/f/t/ftw.avatar-1.0.1/ftw/avatar/utils.py   ftw.avatar(Download)
    def __exit__(self, _exc_type, _exc_value, _traceback):
        AccessControl.SecurityManagement.setSecurityManager(
            self._original_security)
        self._original_security = None
 

src/c/o/collective.quickupload-1.6.3/collective/quickupload/browser/quick_upload.py   collective.quickupload(Download)
                o = f['success']
                logger.info("file url: %s" % o.absolute_url())
                SecurityManagement.setSecurityManager(self.old_sm)
                return o.absolute_url()
 

src/c/o/collective.quickupload-HEAD/collective/quickupload/browser/quick_upload.py   collective.quickupload(Download)
                o = f['success']
                logger.info("file url: %s" % o.absolute_url())
                SecurityManagement.setSecurityManager(self.old_sm)
                return o.absolute_url()
 

src/e/r/erp5-HEAD/product/ERP5Security/ERP5UserManager.py   erp5(Download)
from AccessControl import ClassSecurityInfo
from AccessControl.AuthEncoding import pw_validate
from AccessControl.SecurityManagement import getSecurityManager,\
    setSecurityManager, newSecurityManager
from Products.PageTemplates.PageTemplateFile import PageTemplateFile

src/e/r/erp5-HEAD/product/ERP5Security/ERP5KeyAuthPlugin.py   erp5(Download)
 
from AccessControl import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager,\
                                             newSecurityManager,\
                                             setSecurityManager

Previous  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13  Next