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

All Samples(5)  |  Call(1)  |  Derive(0)  |  Import(4)
Class for special users, like emergency user and nobody

src/h/e/hexagonit.socialbutton-0.10.2/src/hexagonit/socialbutton/browser/viewlet.py   hexagonit.socialbutton(Download)
from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import setSecurityManager
from AccessControl.User import SpecialUser
from Products.CMFCore.utils import getToolByName
    def __enter__(self):
        self.real_sm = getSecurityManager()
        newSecurityManager(
            self.request,
            SpecialUser('Anonymous User', '', self._roles, [])

src/p/l/plone.app.async-1.6/src/plone/app/async/service.py   plone.app.async(Download)
from AccessControl.SecurityManagement import noSecurityManager,\
    newSecurityManager, getSecurityManager
from AccessControl.User import SpecialUser
from Products.CMFCore.interfaces import ISiteRoot
from zc.async.interfaces import KEY

src/p/l/plone.app.async-1.6/src/plone/app/async/job.py   plone.app.async(Download)
from AccessControl.SecurityManagement import noSecurityManager,\
    newSecurityManager, getSecurityManager
from AccessControl.User import SpecialUser
from zope.site.hooks import getSite, setSite
from Products.CMFCore.utils import getToolByName

src/c/o/collective.portlet.usertrack-1.1.1/collective/portlet/usertrack/events.py   collective.portlet.usertrack(Download)
from Acquisition import aq_parent
from AccessControl.User import SpecialUser
from time import time
from zope.interface import Interface
from zope.component import adapter, getUtility