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

All Samples(18)  |  Call(4)  |  Derive(3)  |  Import(11)
A very simple user implementation

that doesn't make a database commitment

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/r/erp5-HEAD/product/ERP5Type/patches/User.py   erp5(Download)
 
from App.config import getConfiguration
from AccessControl.User import SimpleUser
 
SimpleUser_getRoles = SimpleUser.getRoles

src/p/r/Products.GroupUserFolder-3.55.1/Products/GroupUserFolder/LDAPGroupFolder.py   Products.GroupUserFolder(Download)
from Acquisition import aq_base
from AccessControl import ClassSecurityInfo
from AccessControl.User import SimpleUser
from AccessControl.Permissions import view_management_screens, manage_users
from OFS.SimpleItem import SimpleItem
class GroupUser(SimpleUser):
    """ """
 
    def __init__(self, name, password, roles, domains):
        SimpleUser.__init__(self, name, password, roles, domains)

src/i/s/IssueTrackerProduct-0.14.2/IssueTrackerProduct/IssueUserFolder.py   IssueTrackerProduct(Download)
class IssueUser(User.SimpleUser, Persistent):
    """ User with additional email property """
 
    misc_properties = {} # backwardcompatability
 

src/a/p/appy-0.8.5/appy/gen/wrappers/UserWrapper.py   appy(Download)
 
    try:
        from AccessControl.User import SimpleUser
        SimpleUser.getRoles = getRoles
        SimpleUser.getRolesInContext = getRolesInContext

src/i/s/IssueTrackerProduct-HEAD/IssueTrackerProduct/IssueUserFolder.py   IssueTrackerProduct(Download)
class IssueUser(User.SimpleUser, Persistent):
    """ User with additional email property """
 
    misc_properties = {} # backwardcompatability
 

src/p/r/Products.AutoRoleFromHostHeader-0.3.0/src/Products/AutoRoleFromHostHeader/tests/testAutoRole.py   Products.AutoRoleFromHostHeader(Download)
     import IRolesPlugin_conformance
 
from AccessControl.User import SimpleUser
 
ORIGINAL_REMOTE_ADDR = '127.0.0.1'
        helper.anon_only = True
        request.REMOTE_ADDR = '10.0.1.1'        
        user = SimpleUser('someone', 'something', [], [])
        self.assertEqual( helper.getRolesForPrincipal( user, request ), [])
 
        user = SimpleUser('Anonymous User', 'something', [], [])

src/p/r/Products.AutoRole-2.1.1/Products/AutoRole/tests/testAutoRole.py   Products.AutoRole(Download)
     import IRolesPlugin_conformance
 
from AccessControl.User import SimpleUser
 
class FakeRequest(UserDict.UserDict):
        helper.anon_only = True
        request.client_ip = '10.0.1.1'        
        user = SimpleUser('someone', 'something', [], [])
        self.assertEqual( helper.getRolesForPrincipal( user, request ), [])
 
        user = SimpleUser('Anonymous User', 'something', [], [])

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

  1 | 2  Next