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

All Samples(14)  |  Call(3)  |  Derive(4)  |  Import(7)

src/p/r/Products.CMFLDAP-1.0/Products/CMFLDAP/LDAPMemberDataTool.py   Products.CMFLDAP(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.permissions import ManagePortal
from Products.CMFCore.MemberDataTool import MemberDataTool
from Products.CMFCore.MemberDataTool import MemberData
 
_marker = []
_wwwdir = os.path.join(package_home(globals()), 'www')
 
class LDAPMemberDataTool(MemberDataTool):

src/p/r/Products.LDAPUserFolder-2.27/Products/LDAPUserFolder/LDAPMemberDataTool.py   Products.LDAPUserFolder(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.permissions import ManagePortal
from Products.CMFCore.MemberDataTool import MemberDataTool
from Products.CMFCore.MemberDataTool import MemberData
 
_marker = []
_wwwdir = os.path.join(package_home(globals()), 'www')
 
class LDAPMemberDataTool(MemberDataTool):

src/p/r/Products.PlonePAS-5.0/Products/PlonePAS/tools/memberdata.py   Products.PlonePAS(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.MemberDataTool import MemberData as BaseMemberData
from Products.CMFCore.MemberDataTool import MemberDataTool as BaseTool
 
from Products.PluggableAuthService.interfaces.authservice \
class MemberDataTool(BaseTool):
    """PAS-specific implementation of memberdata tool.
    """
 
    meta_type = "PlonePAS MemberData Tool"

src/p/r/Products.PlonePAS-HEAD/Products/PlonePAS/tools/memberdata.py   Products.PlonePAS(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.MemberDataTool import MemberData as BaseMemberData
from Products.CMFCore.MemberDataTool import MemberDataTool as BaseTool
 
from Products.PluggableAuthService.interfaces.authservice \
class MemberDataTool(BaseTool):
    """PAS-specific implementation of memberdata tool.
    """
 
    meta_type = "PlonePAS MemberData Tool"

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_MembershipTool.py   Products.CMFCore(Download)
from Products.CMFCore.CMFBTreeFolder import CMFBTreeFolder
from Products.CMFCore.interfaces import ISiteRoot
from Products.CMFCore.MemberDataTool import MemberDataTool
from Products.CMFCore.PortalFolder import PortalFolder
from Products.CMFCore.tests.base.dummy import DummySite
        members = site._setObject( 'Members', PortalFolder('Members') )
        acl_users = site._setObject( 'acl_users', DummyUserFolder() )
        mdtool = site._setObject( 'portal_memberdata', MemberDataTool() )
        newSecurityManager(None, acl_users.all_powerful_Oz)
 
        utool = site._setObject( 'portal_url', DummyTool() )
        wtool = site._setObject( 'portal_workflow', DummyTool() )
        mdtool = site._setObject( 'portal_memberdata', MemberDataTool() )
        newSecurityManager(None, acl_users.all_powerful_Oz)
 

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