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

All Samples(17)  |  Call(10)  |  Derive(0)  |  Import(7)
Standard User object

src/i/s/IssueTrackerProduct-0.14.2/IssueTrackerOpenID/tests/testOpenID.py   IssueTrackerProduct(Download)
 
        # create a user in the root acl_users folder
        peter = User.User('peter', 'secret', ['Manager'], [])
        self.app.acl_users.data['peter'] = peter
 
    def test_traversing_acl_users(self):
        peter = User.User('peter', 'secret', ['Manager'], [])
        self.app.acl_users.data['peter'] = peter
 
        # that was easy
        # create another userfolder in that subfolder
        uf = self._create_userfolder(subfolder)
        chris = User.User('chris', 'secret', ['Manager'], [])
        uf.data['chris'] = chris
 
 
        uf2 = self._create_userfolder(sub3folder)
        zahid = User.User('zahid', 'secret', ['Manager'], [])
        uf2.data['zahid'] = zahid
 

src/i/s/IssueTrackerProduct-HEAD/IssueTrackerOpenID/tests/testOpenID.py   IssueTrackerProduct(Download)
 
        # create a user in the root acl_users folder
        peter = User.User('peter', 'secret', ['Manager'], [])
        self.app.acl_users.data['peter'] = peter
 
    def test_traversing_acl_users(self):
        peter = User.User('peter', 'secret', ['Manager'], [])
        self.app.acl_users.data['peter'] = peter
 
        # that was easy
        # create another userfolder in that subfolder
        uf = self._create_userfolder(subfolder)
        chris = User.User('chris', 'secret', ['Manager'], [])
        uf.data['chris'] = chris
 
 
        uf2 = self._create_userfolder(sub3folder)
        zahid = User.User('zahid', 'secret', ['Manager'], [])
        uf2.data['zahid'] = zahid
 

src/p/l/plone.app.protect-1.0b1/plone/app/protect/tests/case.py   plone.app.protect(Download)
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from AccessControl.User import User
 
 
        # Tests modify the user object so we better make sure it is *our*
        # user object and not the built-in Anonymous User.
        newSecurityManager(None, User('dummy', 'secret', (), ()))
 
    def tearDown(self):

src/p/l/plone.protect-3.0.0/plone/protect/tests/case.py   plone.protect(Download)
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from AccessControl.User import User
from plone.keyring.keymanager import KeyManager
 
        # Tests modify the user object so we better make sure it is *our*
        # user object and not the built-in Anonymous User.
        newSecurityManager(None, User('dummy', 'secret', (), ()))
 
    def tearDown(self):

src/z/o/Zope-HEAD/src/OFS/tests/testObjectManager.py   Zope(Download)
from AccessControl.SecurityManager import setSecurityPolicy
from AccessControl.SpecialUsers import emergency_user, nobody, system
from AccessControl.User import User # before SpecialUsers
from Acquisition import Implicit
from App.config import getConfiguration

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/z/o/Zope2-2.13.22/src/OFS/tests/testObjectManager.py   Zope2(Download)
from AccessControl.SecurityManager import setSecurityPolicy
from AccessControl.SpecialUsers import emergency_user, nobody, system
from AccessControl.User import User # before SpecialUsers
from Acquisition import aq_base
from Acquisition import Implicit

src/c/o/collective.easytemplate-0.8.0/collective/easytemplate/tests/test_mail.py   collective.easytemplate(Download)
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from AccessControl.User import User
 
from Products.statusmessages.interfaces import IStatusMessage

src/c/o/collective.easytemplate-0.8.0/collective/easytemplate/tests/test_content.py   collective.easytemplate(Download)
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from AccessControl.User import User
 
from Products.statusmessages.interfaces import IStatusMessage