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

All Samples(20)  |  Call(11)  |  Derive(0)  |  Import(9)

src/e/u/Euphorie-6.3.1/src/euphorie/content/api/authentication.py   Euphorie(Download)
from five import grok
from Products.CMFCore.utils import getToolByName
from Products.membrane.interfaces import IMembraneUserAuth
from . import JsonView
from .entry import API
        return None
    else:
        auth = IMembraneUserAuth(user, None)
        return (auth.getUserId(), auth.getUserName())
 
    # We could check user.password directly, but lets defer to the membrane
    # auth framework so the password checking code is all in one place.
    auth = IMembraneUserAuth(user, None)
    info = auth.authenticateCredentials(
            {'login': login, 'password': password})

src/d/e/dexterity.membrane-0.4/dexterity/membrane/behavior/membraneuser.py   dexterity.membrane(Download)
from Products.CMFCore.utils import getToolByName
from Products.PlonePAS.sheet import MutablePropertySheet
from Products.membrane.interfaces import IMembraneUserAuth
from Products.membrane.interfaces import IMembraneUserChanger
from Products.membrane.interfaces import IMembraneUserObject

src/d/e/dexterity.membrane-0.4/dexterity/membrane/behavior/membranegroup.py   dexterity.membrane(Download)
# -*- coding: utf-8 -*-
from Products.CMFCore.utils import getToolByName
from Products.membrane.interfaces import IGroup, IMembraneUserAuth
from five import grok
from zope.interface import Interface

src/p/r/Products.FacultyStaffDirectory-3.1.3/Products/FacultyStaffDirectory/membership/facultystaffdirectory.py   Products.FacultyStaffDirectory(Download)
 
from Products.membrane.interfaces import IGroup
from Products.membrane.interfaces import IMembraneUserAuth
 
# from Products.membrane.at.interfaces import ICategoryMapper

src/c/o/collective.subscribemember-1.11/collective/subscribemember/browser/renew.py   collective.subscribemember(Download)
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from Products.CMFCore.utils import getToolByName
from Products.membrane.interfaces import IMembraneUserAuth
from Products.statusmessages.interfaces import IStatusMessage
from collective.subscribemember.events import MemberCreatedOrRenewedEvent, ProcessSubscriptionEvent

src/p/r/Products.membrane-2.1.11/Products/membrane/tests/testMembraneGroupManager.py   Products.membrane(Download)
 
from Products.membrane.tests.utils import sortTuple
from Products.membrane.interfaces import IMembraneUserAuth
from Products.membrane.interfaces import IMembraneUserGroups
 
    def testGroupMembership(self):
        group = self.portal.testgroup
        member = group.testuser  # We need acquisition to be correct
        mem_auth = IMembraneUserAuth(member)
        mem_grps = IMembraneUserGroups(member)
        member2 = self.member2
        mem2_auth = IMembraneUserAuth(member2)
    def testGroupMembership(self):
        group = self.portal.testgroup
        member = group.testuser  # We need acquisition to be correct
        mem_auth = IMembraneUserAuth(member)
        mem_grps = IMembraneUserGroups(member)
        member2 = self.member2
        mem2_auth = IMembraneUserAuth(member2)

src/p/r/Products.membrane-2.1.11/Products/membrane/tests/testMembraneUserManager.py   Products.membrane(Download)
 
from Products.membrane.tests.utils import sortTuple
from Products.membrane.interfaces import IMembraneUserAuth
from Products.membrane.interfaces import IMembraneUserManagement
from Products.membrane.plugins.usermanager import MembraneUserManager
    def testAuthenticateOnMember(self):
        credentials = {'login': 'norealuser', 'password': 'norealpassword'}
        userauth = IMembraneUserAuth(self.member)
        authcred = userauth.authenticateCredentials
        self.failUnlessEqual(authcred(credentials), None)
    def testUserChangePassword(self):
        usermanager = IMembraneUserManagement(self.member)
        userauth = IMembraneUserAuth(self.member)
        authcred = userauth.authenticateCredentials
        # Verify the current credentials
    def testChangePassword(self):
        pmm = self.portal.acl_users.pmm
        userauth = IMembraneUserAuth(self.member)
        authcred = pmm.authenticateCredentials
        # Verify the current credentials

src/p/r/Products.membrane-2.1.11/Products/membrane/tests/testMembraneSearch.py   Products.membrane(Download)
from Products.membrane.tests import base
from Products.membrane.tests import testMembraneUserManager
from Products.membrane.interfaces import IMembraneUserAuth
 
 
    def testSimpleMemberSearch(self):
        uf = self.portal.acl_users
        mems = uf.searchUsers(login=self.member.getUserName())
        user_auth = IMembraneUserAuth(self.member)
        self.failUnless(len(mems) == 1 and
    def testFullnameMemberSearch(self):
        uf = self.portal.acl_users
        mems = uf.searchUsers(fullname=self.member.Title())
        user_auth = IMembraneUserAuth(self.member)
        self.failUnless(len(mems) == 1 and

src/p/r/Products.membrane-2.1.11/Products/membrane/tests/testMembranePropertyManager.py   Products.membrane(Download)
from Products.CMFPlone.utils import _createObjectByType
 
from Products.membrane.interfaces import IMembraneUserAuth
from Products.membrane.interfaces import IMembraneUserProperties
from Products.membrane.config import TOOLNAME