def setUpPloneSite(self, portal): portal.acl_users.userFolderAddUser( SITE_OWNER_NAME, SITE_OWNER_PASSWORD, ['Manager'], []) login(portal, SITE_OWNER_NAME) setRoles(portal, TEST_USER_ID, ['Manager']) applyProfile(portal, 'plone.restapi:default') applyProfile(portal, 'plone.restapi:testing') add_catalog_indexes(portal, DX_TYPES_INDEXES) set_available_languages()
def setUpPloneSite(self, portal): portal.acl_users.userFolderAddUser(SITE_OWNER_NAME, SITE_OWNER_PASSWORD, ['Manager'], []) login(portal, SITE_OWNER_NAME) setRoles(portal, TEST_USER_ID, ['Manager']) applyProfile(portal, 'plone.restapi:default') applyProfile(portal, 'plone.restapi:testing') add_catalog_indexes(portal, DX_TYPES_INDEXES) set_available_languages()
def setUpPloneSite(self, portal): portal.acl_users.userFolderAddUser( SITE_OWNER_NAME, SITE_OWNER_PASSWORD, ['Manager'], []) login(portal, SITE_OWNER_NAME) setRoles(portal, TEST_USER_ID, ['Manager']) applyProfile(portal, 'plone.restapi:default') applyProfile(portal, 'plone.restapi:testing') add_catalog_indexes(portal, DX_TYPES_INDEXES) set_available_languages() quickInstallProduct(portal, 'collective.MockMailHost') applyProfile(portal, 'collective.MockMailHost:default') states = portal.portal_workflow['simple_publication_workflow'].states states['published'].title = u'Published with accent é'.encode('utf8')
def setUpPloneSite(self, portal): portal.acl_users.userFolderAddUser( SITE_OWNER_NAME, SITE_OWNER_PASSWORD, ['Manager'], []) login(portal, SITE_OWNER_NAME) setRoles(portal, TEST_USER_ID, ['Manager']) language_tool = getToolByName(portal, 'portal_languages') language_tool.addSupportedLanguage('en') language_tool.addSupportedLanguage('es') if portal.portal_setup.profileExists('plone.app.multilingual:default'): applyProfile(portal, 'plone.app.multilingual:default') applyProfile(portal, 'plone.restapi:default') applyProfile(portal, 'plone.restapi:testing') add_catalog_indexes(portal, DX_TYPES_INDEXES) set_available_languages()
def setUpPloneSite(self, portal): portal.acl_users.userFolderAddUser( SITE_OWNER_NAME, SITE_OWNER_PASSWORD, ['Manager'], []) login(portal, SITE_OWNER_NAME) setRoles(portal, TEST_USER_ID, ['Manager']) language_tool = getToolByName(portal, 'portal_languages') language_tool.addSupportedLanguage('en') language_tool.addSupportedLanguage('es') if portal.portal_setup.profileExists('plone.app.multilingual:default'): applyProfile(portal, 'plone.app.multilingual:default') applyProfile(portal, 'plone.restapi:default') applyProfile(portal, 'plone.restapi:testing') add_catalog_indexes(portal, DX_TYPES_INDEXES) set_available_languages() states = portal.portal_workflow['simple_publication_workflow'].states states['published'].title = u'Published with accent é'.encode('utf8')
def setUpPloneSite(self, portal): portal.acl_users.userFolderAddUser( SITE_OWNER_NAME, SITE_OWNER_PASSWORD, ["Manager"], [] ) login(portal, SITE_OWNER_NAME) setRoles(portal, TEST_USER_ID, ["Manager"]) set_supported_languages(portal) if portal.portal_setup.profileExists("plone.app.multilingual:default"): applyProfile(portal, "plone.app.multilingual:default") applyProfile(portal, "plone.restapi:default") applyProfile(portal, "plone.restapi:testing") add_catalog_indexes(portal, DX_TYPES_INDEXES) set_available_languages() enable_request_language_negotiation(portal) states = portal.portal_workflow["simple_publication_workflow"].states states["published"].title = "Published with accent é" # noqa: E501
def setUpPloneSite(self, portal): portal.acl_users.userFolderAddUser(SITE_OWNER_NAME, SITE_OWNER_PASSWORD, ['Manager'], []) login(portal, SITE_OWNER_NAME) setRoles(portal, TEST_USER_ID, ['Manager']) set_supported_languages(portal) if portal.portal_setup.profileExists('plone.app.multilingual:default'): applyProfile(portal, 'plone.app.multilingual:default') applyProfile(portal, 'plone.restapi:default') applyProfile(portal, 'plone.restapi:testing') add_catalog_indexes(portal, DX_TYPES_INDEXES) set_available_languages() enable_request_language_negotiation(portal) states = portal.portal_workflow['simple_publication_workflow'].states if six.PY2: #676 states['published'].title = u'Published with accent é'.encode( 'utf8') # noqa: E501 else: states[ 'published'].title = u'Published with accent é' # noqa: E501
def setUpPloneSite(self, portal): portal.acl_users.userFolderAddUser(SITE_OWNER_NAME, SITE_OWNER_PASSWORD, ["Manager"], []) login(portal, SITE_OWNER_NAME) setRoles(portal, TEST_USER_ID, ["Manager"]) set_supported_languages(portal) applyProfile(portal, "plone.restapi:default") applyProfile(portal, "plone.restapi:testing") add_catalog_indexes(portal, DX_TYPES_INDEXES) set_available_languages() enable_request_language_negotiation(portal) quickInstallProduct(portal, "collective.MockMailHost") applyProfile(portal, "collective.MockMailHost:default") states = portal.portal_workflow["simple_publication_workflow"].states if six.PY2: # issue 676 states["published"].title = u"Published with accent é".encode( "utf8") # noqa: E501 else: states[ "published"].title = u"Published with accent é" # noqa: E501
def setUpPloneSite(self, portal): applyProfile(portal, 'plone.restapi:default') applyProfile(portal, 'plone.restapi:testing') add_catalog_indexes(portal, DX_TYPES_INDEXES)