Esempio n. 1
0
    def setUpPloneSite(self, portal):
        helpers.applyProfile(portal, 'plone.formwidget.contenttree:default')

        portal.acl_users.userFolderAddUser('admin', 'secret', ['Manager'], [])

        login(portal, 'admin')
        portal.portal_workflow.setDefaultChain("simple_publication_workflow")

        setRoles(portal, TEST_USER_ID, ['Manager'])
Esempio n. 2
0
    def setUpPloneSite(self, portal):
        helpers.applyProfile(portal, 'plone.formwidget.contenttree:default')

        portal.acl_users.userFolderAddUser('admin', 'secret', ['Manager'], [])

        login(portal, 'admin')
        portal.portal_workflow.setDefaultChain("simple_publication_workflow")

        setRoles(portal, TEST_USER_ID, ['Manager'])
    def setUpPloneSite(self, portal):
        """Set up Plone."""
        # Install into Plone site using portal_setup
        applyProfile(portal, 'plone.schemaeditor.tests:testing')

        # Login and create some test content
        setRoles(portal, TEST_USER_ID, ['Manager'])
        login(portal, TEST_USER_NAME)

        # Commit so that the test browser sees these objects
        import transaction
        transaction.commit()
Esempio n. 4
0
    def setUpPloneSite(self, portal):
        """Set up Plone."""
        # Install into Plone site using portal_setup
        applyProfile(portal, 'plone.schemaeditor.tests:testing')
        #applyProfile(portal, 'plone.app.z3cform:default')
        #applyProfile(portal, 'plone.app.dexterity:default')

        # Login and create some test content
        setRoles(portal, TEST_USER_ID, ['Manager'])
        login(portal, TEST_USER_NAME)

        # Commit so that the test browser sees these objects
        import transaction
        transaction.commit()
Esempio n. 5
0
 def setUpPloneSite(self, portal):
     helpers.applyProfile(portal, 'plone.app.contenttypes:default')
     helpers.applyProfile(portal, 'ploneintranet.microblog:default')
     helpers.applyProfile(portal, 'ploneintranet.notifications:default')
 def setUpPloneSite(self, portal):
     helpers.applyProfile(portal, 'plone.app.contenttypes:default')
     helpers.applyProfile(portal, 'plonesocial.microblog:default')
     helpers.applyProfile(portal, 'ploneintranet.notifications:default')
 def setUpPloneSite(self, portal):
     helpers.applyProfile(portal, 'ploneintranet.async:default')
Esempio n. 8
0
 def setUpPloneSite(self, portal):
     helpers.applyProfile(portal, 'ploneintranet.invitations:default')
 def setUpPloneSite(self, portal):
     helpers.applyProfile(portal, 'ploneintranet.documentviewer:default')
Esempio n. 10
0
 def setUpPloneSite(self, portal):
     setRoles(portal, TEST_USER_ID, ['Manager'])
     applyProfile(portal, 'ftw.ech0039.tests:testcontent')
Esempio n. 11
0
 def setUpPloneSite(self, portal):
     helpers.applyProfile(portal, 'ploneintranet.invitations:default')