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

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

src/e/r/erp5-HEAD/product/ERP5Catalog/CatalogTool.py   erp5(Download)
from Products.ERP5Type import Permissions
from AccessControl import ClassSecurityInfo, getSecurityManager
from AccessControl.User import system as system_user
from Products.CMFCore.utils import UniqueObject, _getAuthenticatedUser, getToolByName
from Products.ERP5Type.Globals import InitializeClass, DTMLFile

src/e/r/erp5-HEAD/product/CMFActivity/ActivityTool.py   erp5(Download)
from AccessControl.SecurityManagement import setSecurityManager
from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.User import system as system_user
from Products.CMFCore.utils import UniqueObject, _getAuthenticatedUser
from Products.ERP5Type.Globals import InitializeClass, DTMLFile

src/o/n/on.zopetools-0.3.1/on/zopetools/zopestuff.py   on.zopetools(Download)
from AccessControl.SecurityManagement import newSecurityManager
 
from AccessControl.User import system
from AccessControl import getSecurityManager
from AccessControl import Unauthorized

src/o/n/on.zopetools-0.3.1/on/zopetools/zodbmountpoints.py   on.zopetools(Download)
from AccessControl.SecurityManagement import newSecurityManager
 
from AccessControl.User import system
from AccessControl import Unauthorized
 

src/c/o/collective.steps-0.3/src/collective/steps/common.py   collective.steps(Download)
def prepare(obj):
    from AccessControl.SecurityManagement import newSecurityManager
    from AccessControl.User import system
    newSecurityManager(None,system)
 

src/z/o/Zope-HEAD/src/Products/ZODBMountPoint/tests/testMountPoint.py   Zope(Download)
        self.app = app
        # login
        from AccessControl.User import system
        from AccessControl.SecurityManagement import newSecurityManager
        newSecurityManager(None, system)

src/e/r/erp5-HEAD/product/MailTemplates/tests/test_MailTemplate.py   erp5(Download)
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from AccessControl.User import system as SystemUser, SimpleUser
from cStringIO import StringIO
from difflib import unified_diff

src/e/r/erp5-HEAD/product/MailTemplates/tests/test_FSMailTemplate.py   erp5(Download)
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from AccessControl.User import system as SystemUser,SimpleUser
from cStringIO import StringIO
from OFS.Folder import Folder

src/p/r/Products.ATSchemaEditorNG-0.6/Products/ATSchemaEditorNG/tests/test_schemaeditor.py   Products.ATSchemaEditorNG(Download)
# import special users
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.User import nobody,system,User
 
from atse_testcase import makeContent

src/d/m/dm.zopepatches.zclasses-0.1.1/dm/zopepatches/zclasses/testZClasses.py   dm.zopepatches.zclasses(Download)
assert '<form action="zc_add">' in x
# we must login to be able to add the instance
from AccessControl.User import system
from AccessControl.SecurityManagement import newSecurityManager
newSecurityManager(None, system)

  1 | 2  Next