Beispiel #1
0
    def setUpZope(self, app, configurationContext):
        PloneAppMultilingualLayer.setUpZope(self, app, configurationContext)
        z2.installProduct(app, 'Products.PloneLanguageTool')
        z2.installProduct(app, 'Products.ZCatalog')

        fiveconfigure.debug_mode = True
        import slc.xliff
        self.loadZCML('configure.zcml', package=slc.xliff)
        self.loadZCML('testing.zcml', package=slc.xliff)
        fiveconfigure.debug_mode = False
Beispiel #2
0
    def setUpZope(self, app, configurationContext):
        PloneAppMultilingualLayer.setUpZope(self, app, configurationContext)
        z2.installProduct(app, 'Products.PloneLanguageTool')
        z2.installProduct(app, 'Products.ZCatalog')

        fiveconfigure.debug_mode = True
        import slc.xliff
        self.loadZCML('configure.zcml', package=slc.xliff)
        self.loadZCML('testing.zcml', package=slc.xliff)
        fiveconfigure.debug_mode = False
Beispiel #3
0
    def setUpPloneSite(self, portal):
        PloneAppMultilingualLayer.setUpPloneSite(self, portal)

        applyProfile(portal, 'slc.xliff:default')
        applyProfile(portal, 'slc.xliff:testing')

        # Login as manager and create a test folder
        setRoles(portal, TEST_USER_ID, ['Manager'])
        login(portal, TEST_USER_NAME)
        portal.invokeFactory('Folder', 'folder')

        # Commit so that the test browser sees these objects
        portal.portal_catalog.clearFindAndRebuild()
        import transaction
        transaction.commit()
Beispiel #4
0
    def setUpPloneSite(self, portal):
        PloneAppMultilingualLayer.setUpPloneSite(self, portal)

        applyProfile(portal, 'slc.xliff:default')
        applyProfile(portal, 'slc.xliff:testing')

        # Login as manager and create a test folder
        setRoles(portal, TEST_USER_ID, ['Manager'])
        login(portal, TEST_USER_NAME)
        portal.invokeFactory('Folder', 'folder')

        # Commit so that the test browser sees these objects
        portal.portal_catalog.clearFindAndRebuild()
        import transaction
        transaction.commit()