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

All Samples(17)  |  Call(3)  |  Derive(3)  |  Import(11)

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/patches/csrf.py   Products.CMFPlone(Download)
    RegistrationTool.addMember = patch(RegistrationTool.addMember)
 
    from Products.CMFCore.MembershipTool import MembershipTool as MT
    from Products.PlonePAS.tools.membership import MembershipTool as PMT
    MT.setPassword = patch(MT.setPassword)
    PMT.setPassword = patch(PMT.setPassword)
    MT.setRoleMapping = patch(MT.setRoleMapping)
    MT.deleteMemberArea = patch(MT.deleteMemberArea)
    MT.setLocalRoles = patch(MT.setLocalRoles)

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/patches/csrf.py   Products.CMFPlone(Download)
    RegistrationTool.addMember = patch(RegistrationTool.addMember)
 
    from Products.CMFCore.MembershipTool import MembershipTool as MT
    from Products.PlonePAS.tools.membership import MembershipTool as PMT
    MT.setPassword = patch(MT.setPassword)
    PMT.setPassword = patch(PMT.setPassword)
    MT.setRoleMapping = patch(MT.setRoleMapping)
    MT.deleteMemberArea = patch(MT.deleteMemberArea)
    MT.setLocalRoles = patch(MT.setLocalRoles)

src/p/r/Products.PlonePAS-5.0/Products/PlonePAS/tools/membership.py   Products.PlonePAS(Download)
from Products.CMFCore.utils import _checkPermission
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.MembershipTool import MembershipTool as BaseTool
 
from Products.PlonePAS.events import UserLoggedInEvent
class MembershipTool(BaseTool):
    """PAS-based customization of MembershipTool.
    """
 
    implements(membership.IMembershipTool)

src/p/r/Products.PlonePAS-HEAD/Products/PlonePAS/tools/membership.py   Products.PlonePAS(Download)
from Products.CMFCore.utils import _checkPermission
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.MembershipTool import MembershipTool as BaseTool
 
from Products.PlonePAS.events import UserLoggedInEvent
class MembershipTool(BaseTool):
    """PAS-based customization of MembershipTool.
    """
 
    implements(membership.IMembershipTool)

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/MembershipTool.py   Products.CMFDefault(Download)
from ZPublisher.BaseRequest import RequestContainer
 
from Products.CMFCore.MembershipTool import MembershipTool as BaseTool
from Products.CMFCore.utils import _checkPermission
from Products.CMFDefault.Document import addDocument
class MembershipTool(BaseTool):
 
    """ Implement 'portal_membership' interface using "stock" policies.
    """
 

src/i/n/inqbus.plone.fastmemberproperties-1.4/inqbus/plone/fastmemberproperties/__init__.py   inqbus.plone.fastmemberproperties(Download)
        return self.orig_deleteMembers(member_ids, delete_memberareas,
                      delete_localroles, REQUEST)
    from Products.CMFCore.MembershipTool import MembershipTool
    MembershipTool.orig_deleteMembers = MembershipTool.deleteMembers
    MembershipTool.deleteMembers = patched_deleteMembers

src/b/e/betahaus.emaillogin-0.6.1/betahaus/emaillogin/__init__.py   betahaus.emaillogin(Download)
        return indexer
 
    from Products.CMFCore.MembershipTool import MembershipTool
    MembershipTool.deleteMembers = delete_indexer(MembershipTool.deleteMembers)
 

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_MembershipTool.py   Products.CMFCore(Download)
    def test_interfaces(self):
        from Products.CMFCore.interfaces import IMembershipTool
        from Products.CMFCore.MembershipTool import MembershipTool
 
        verifyClass(IMembershipTool, MembershipTool)
    def _makeOne(self, *args, **kw):
        from Products.CMFCore.MembershipTool import MembershipTool
 
        return MembershipTool(*args, **kw)
 

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_MemberDataTool.py   Products.CMFCore(Download)
    def test_pruneMemberData(self):
        # This needs a tad more setup
        from OFS.Folder import Folder
        from Products.CMFCore.MembershipTool import MembershipTool
        folder = Folder('test')
        folder._setObject('portal_memberdata', self._makeOne())
        folder._setObject('portal_membership', MembershipTool())

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_ActionsTool.py   Products.CMFCore(Download)
from Products.CMFCore.Expression import Expression
from Products.CMFCore.interfaces import ISiteRoot
from Products.CMFCore.MembershipTool import MembershipTool
from Products.CMFCore.tests.base.testcase import SecurityRequestTest
from Products.CMFCore.tests.base.testcase import WarningInterceptor
        root._setObject( 'portal_url', URLTool() )
        root._setObject( 'foo', URLTool() )
        root._setObject('portal_membership', MembershipTool())
        self.tool = root.portal_actions
        self.tool.action_providers = ('portal_actions',)