def setUp(self):
        MembershipTests.setUp(self)
        ZopeLite.installProduct('LDAPUserFolder')

        if getattr(self, 'app', None) is not None:
            # Running under CMF >= 2.1, need to set up a site
            self._mungeSite(self.app.site)
Beispiel #2
0
def setup_product():
    fiveconfigure.debug_mode = True
    ZopeLite.installProduct('Five', quiet=1)
    zcml.load_site()
    configure_vocabulary_registry()
    
    import Products.CMFCore
    import Products.Five
    import Products.GenericSetup
    import zope.i18n
    import netsight.async
Beispiel #3
0
def setup_product():
    fiveconfigure.debug_mode = True
    ZopeLite.installProduct('Five', quiet=1)
    zcml.load_site()
    configure_vocabulary_registry()

    import Products.CMFCore
    import Products.Five
    import Products.GenericSetup
    import zope.i18n
    import netsight. async
    def setUp(self):
        import Products.LDAPUserFolder
        zcml.load_config('configure.zcml', Products.LDAPUserFolder)

        MembershipTests.setUp(self)
        ZopeLite.installProduct('LDAPUserFolder')
        site = self.app.site

        profile_id = 'profile-Products.LDAPUserFolder:cmfldap'
        site.portal_setup.runAllImportStepsFromProfile(profile_id)

        # Remove the "standard" user folder and replace it with a
        # LDAPDummyUserFolder
        site.manage_delObjects(['acl_users'])
        site._setObject('acl_users', LDAPDummyUserFolder())

        # Register one new attribute for testing
        site.portal_memberdata.addMemberProperty('sn')
    def setUp(self):
        import Products.LDAPUserFolder
        zcml.load_config('configure.zcml', Products.LDAPUserFolder)

        MembershipTests.setUp(self)
        ZopeLite.installProduct('LDAPUserFolder')
        site = self.app.site

        profile_id = 'profile-Products.LDAPUserFolder:cmfldap'
        site.portal_setup.runAllImportStepsFromProfile(profile_id)
    
        # Remove the "standard" user folder and replace it with a
        # LDAPDummyUserFolder
        site.manage_delObjects(['acl_users'])
        site._setObject('acl_users', LDAPDummyUserFolder())

        # Register one new attribute for testing
        site.portal_memberdata.addMemberProperty('sn')