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

All Samples(103)  |  Call(40)  |  Derive(9)  |  Import(54)
User that passes all security checks.  Note, however, that modules
like Owner.py can still impose restrictions.

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
                # current user whould not have permission to do that.
                tmp_user = UnrestrictedUser(
                    sm.getUser().getId(), '', ['Editor', ], '')
 
                # Wrap the user in the acquisition context of the portal

src/c/o/collective.blueprint.wikipedia-HEAD/import.py   collective.blueprint.wikipedia(Download)
import transaction
 
from AccessControl.User import UnrestrictedUser
from AccessControl.SecurityManagement import newSecurityManager
 
                filename, filename, filepath, filepath)
 
    admin = UnrestrictedUser('admin', '', ['Manager'], '')
    newSecurityManager(None, admin)
 

src/s/e/seantis.dir.events-1.2.1/seantis/dir/events/unrestricted.py   seantis.dir.events(Download)
from AccessControl.SecurityManagement import newSecurityManager, setSecurityManager
from AccessControl.User import nobody
from AccessControl.User import UnrestrictedUser as BaseUnrestrictedUser
 
class UnrestrictedUser(BaseUnrestrictedUser):

src/c/o/collective.barcamp-0.1/collective/barcamp/unrestrictor.py   collective.barcamp(Download)
from AccessControl.SecurityManagement import newSecurityManager, setSecurityManager
from AccessControl.User import nobody
from AccessControl.User import UnrestrictedUser as BaseUnrestrictedUser
from zope.app.component.hooks import getSite
 
class UnrestrictedUser(BaseUnrestrictedUser):

src/c/o/collective.powertoken.core-0.3.0/collective/powertoken/core/utility.py   collective.powertoken.core(Download)
from collective.powertoken.core import config
 
from AccessControl.User import SimpleUser, UnrestrictedUser
from AccessControl.SecurityManagement import newSecurityManager, setSecurityManager, getSecurityManager
 

src/r/t/rt.lastmodifier-0.3.1/rt/lastmodifier/browser/lastmodifier.py   rt.lastmodifier(Download)
from Products.Five.browser import BrowserView
from plone.app.layout.viewlets.content import ContentHistoryViewlet
from AccessControl.User import SimpleUser, UnrestrictedUser
from AccessControl.SecurityManagement import newSecurityManager, setSecurityManager, getSecurityManager
from Products.CMFCore.utils import getToolByName

src/e/a/Easyshop-HEAD/src/easyshop.order/easyshop/order/adapters/order_management.py   Easyshop(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
class UnrestrictedUser(BaseUnrestrictedUser):
    """Unrestricted user that still has an id.
    """
    def getId(self):
        """Return the ID of the user.

src/u/w/uwosh.pfg.d2c-2.4.3/uwosh/pfg/d2c/utils.py   uwosh.pfg.d2c(Download)
from AccessControl import getSecurityManager
from Products.CMFCore.utils import getToolByName
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import setSecurityManager
from AccessControl.User import UnrestrictedUser as BaseUnrestrictedUser
 
 
class UnrestrictedUser(BaseUnrestrictedUser):

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
class UnrestrictedUser(BaseUnrestrictedUser):
    """Unrestricted user that still has an id.
    """
    def getId(self):
        """Return the ID of the user.

src/r/a/raptus.mercurialstorage-1.0b4/raptus/mercurialstorage/storage.py   raptus.mercurialstorage(Download)
from AccessControl import ClassSecurityInfo, Unauthorized
from AccessControl.SecurityManagement import getSecurityManager, newSecurityManager, setSecurityManager
from AccessControl.User import UnrestrictedUser
 
from OFS.Image import File
class NamedUnrestrictedUser(UnrestrictedUser):
    def getId(self):
        return self.id
 
manager = NamedUnrestrictedUser('System Processes','',('Manager',), [])

Previous  1 | 2 | 3 | 4 | 5  Next