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
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()