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

All Samples(1007)  |  Call(305)  |  Derive(0)  |  Import(702)
Get a security manager, for the current thread.
    

        def getSecurityManager():
    """Get a security manager, for the current thread.
    """
    thread_id=get_ident()
    manager=_managers.get(thread_id, None)
    if manager is None:
        nobody = getattr(SpecialUsers, 'nobody', None)
        if nobody is None:
            # Initialize SpecialUsers by importing User.py.
            import User
            nobody = SpecialUsers.nobody
        manager = SecurityManager(thread_id, SecurityContext(nobody))
        _managers[thread_id]=manager

    return manager
        


src/b/i/bika.lims-3.01a/bika/lims/browser/reports/qualitycontrol_resultspersamplepoint.py   bika.lims(Download)
from AccessControl import getSecurityManager
from DateTime import DateTime
from Products.CMFCore.utils import getToolByName
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from bika.lims import bikaMessageFactory as _

src/b/i/bika.lims-3.01a/bika/lims/browser/reports/productivity_analysespersampletype.py   bika.lims(Download)
from AccessControl import getSecurityManager
from DateTime import DateTime
from Products.CMFCore.utils import getToolByName
from bika.lims.browser import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile

src/b/i/bika.lims-3.01a/bika/lims/browser/sample.py   bika.lims(Download)
from AccessControl import getSecurityManager
from DateTime import DateTime
from Products.Archetypes.config import REFERENCE_CATALOG
from Products.Archetypes.public import DisplayList
from Products.CMFCore.utils import getToolByName

src/b/i/bika.lims-3.01a/bika/lims/browser/referencesample.py   bika.lims(Download)
from AccessControl import getSecurityManager
from Products.Archetypes.config import REFERENCE_CATALOG
from Products.CMFCore.utils import getToolByName
from bika.lims.browser import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile

src/b/i/Bika-LIMS-HEAD/bika/lims/browser/sample.py   Bika-LIMS(Download)
from AccessControl import getSecurityManager
from DateTime import DateTime
from Products.Archetypes.config import REFERENCE_CATALOG
from Products.Archetypes.public import DisplayList
from Products.CMFCore.utils import getToolByName

src/b/i/Bika-LIMS-HEAD/bika/lims/browser/referencesample.py   Bika-LIMS(Download)
from AccessControl import getSecurityManager
from Products.Archetypes.config import REFERENCE_CATALOG
from Products.CMFCore.utils import getToolByName
from bika.lims.browser import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile

src/m/2/M2Crypto-HEAD/examples/Zope/lib/python/Products/GuardedFile/GuardedFile.py   M2Crypto(Download)
__version__ = '1.3'
 
from AccessControl import getSecurityManager
from Globals import HTMLFile, MessageDialog
from OFS.Image import File, cookId

src/c/y/cyn.in-HEAD/src/ubify.cyninv2theme/ubify/cyninv2theme/__init__.py   cyn.in(Download)
 
from Products.ATContentTypes.interface import IATBTreeFolder
from AccessControl import getSecurityManager
from Acquisition import aq_inner, aq_parent
from zope.component import getMultiAdapter
def getCurrentUser(object):
    from AccessControl.SecurityManagement import newSecurityManager
    from AccessControl import getSecurityManager
 
    currentOwner = object.getOwner()
    getCurrentUser(object)
 
    from AccessControl import getSecurityManager
    currentuserid = getSecurityManager().getUser().getId()
    if currentuserid is None:
def getStatusMessagesForUser(portal,username=''):
    from AccessControl import getSecurityManager
    ct = portal.portal_catalog
    if username is '':
        username = getSecurityManager().getUser().getId()
def setDefaultWikiPageForContext(context,UID):
    from AccessControl import getSecurityManager
    if context.hasProperty('default_wiki_page') == 0:
        context.manage_addProperty('default_wiki_page',UID,'string')
    else:

src/p/r/Products.GroupUserFolder-3.55.1/Products/GroupUserFolder/GroupUserFolder.py   Products.GroupUserFolder(Download)
from AccessControl import ClassSecurityInfo
from AccessControl import Permissions
from AccessControl import getSecurityManager
from AccessControl import Unauthorized
from Globals import InitializeClass

src/e/r/erp5-HEAD/product/ERP5Type/patches/DCWorkflow.py   erp5(Download)
from Products.DCWorkflow.Transitions import TRIGGER_WORKFLOW_METHOD, TransitionDefinition
from Products.DCWorkflow.Transitions import TRIGGER_USER_ACTION
from AccessControl import getSecurityManager, ModuleSecurityInfo, Unauthorized
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.WorkflowCore import WorkflowException
    def _listGlobalActions(user=None, id=None, portal_path=None):
      portal = self._getPortalRoot()
      portal_url = portal.portal_url
      portal_url = portal_url()
      sm = getSecurityManager()
    return None
  variable_match_dict = {}
  security_manager = getSecurityManager()
  workflow_id = self.id
  workflow_title = self.title

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