def setUpContent(self):
        pat.login(self.portal, testing.SITE_ADMIN)

        self.member = helpers.add_activated_cnrd_member(
            self.people, "Test User 1", "student", uid="test_user_1")

        self.c1 = helpers.create_challenge(
            self.challenges, "challenge_1", title="Challenge 1")
        self.c2 = helpers.create_challenge(
            self.challenges, "challenge_2", title="Challenge 2")

        self.ws1 = ws_helpers.create_workspace(
            self.workspaces, 'ws_1', title=u"Workspace 1",
            challenges=[RelationValue(self.c1.intid)])
        self.ws1.addMember(self.member.id)
        self.ws2 = ws_helpers.create_workspace(
            self.workspaces, 'ws_2', title=u"Workspace 2",
            challenges=[RelationValue(self.c2.intid)])
        self.ws2.addMember(self.member.id)

        self.project = helpers.create_project(
            self.workspaces, 'project',
            title=u"Prøjėçt",
            description=u"A lengthy but interesting description",
            goals=u"Lorem ipsum. Add goals here.")
        ws_helpers.do_action_for(self.project, 'publish')

        pat.logout()
    def setUpContent(self):
        login(self.portal, testing.SITE_ADMIN)

        challenge_folder = self.portal["challenges"]
        helpers.create_challenge(
            challenge_folder, "test-challenge", title=u"Test Challenge")
        self.challenge = challenge_folder["test-challenge"]

        self.ws_folder = self.portal["workspaces"]
 def setUpContent(self):
     pat.login(self.portal, testing.SITE_ADMIN)
     self.challenge = helpers.create_challenge(self.challenges, "a-real-challenge")
     self.project = helpers.create_project(self.workspaces, 'project', title=u"Prøjėçt")
     self.project_admin = helpers.add_activated_student(self.people, u"Hörbert M@ier")
     self.project.addManager(self.project_admin.id)
     pat.logout()
예제 #4
0
    def setUpContent(self):
        pat.login(self.portal, testing.SITE_ADMIN)
        self.challenge = helpers.create_challenge(
            self.challenges, "a-real-challenge")
        self.ws_owner = helpers.add_activated_student(
            self.people, u"Owen Owner")
        self.ws_admin = helpers.add_activated_student(
            self.people, u"Hörbert M@ier")
        self.ws_member = helpers.add_activated_student(
            self.people, u"Mandy Membr")

        pat.login(self.portal, self.ws_owner.id)
        self.ws = ws_helpers.create_workspace(
            self.workspaces,
            "workspace",
            title=u"Workspace",
            description=u"A lengthy but interesting description",
            goals=u"Lorem ipsum. Add goals here.",
            challenges=[relatify(self.challenge)])
        ws_helpers.do_action_for(self.ws,
            'publish-for-site-members-with-public-decription')
        self.ws.addManager(self.ws_admin.id)
        self.ws.addMember(self.ws_member.id)

        pat.logout()
예제 #5
0
    def setUpContent(self):
        pat.login(self.portal, testing.SITE_ADMIN)

        self.challenge = helpers.create_challenge(
            self.challenges, "a-real-challenge")

        for i in range(0, 20):
            wsId = "workspace_" + str(i)
            wsName = u"Workspace " + str(i)
            ws = ws_helpers.create_workspace(self.workspaces,
                wsId, title=wsName,
                challenges=[relatify(self.challenge)])
            modified(ws)

        for i in range(0, 5):
            projectId = 'project_' + str(i)
            projectName = u"Prøjėçt " + str(i)
            project = helpers.create_project(
                self.workspaces, projectId,
                title=projectName,
                challenges=[relatify(self.challenge)],
                description=u"A lengthy but interesting description",
                goals=u"Lorem ipsum. Add goals here.")
            ws_helpers.do_action_for(project, 'publish')

            for j in range(0,3):
                wsId = "project_workspace_" + str(i) + "_" + str(j)
                wsName = u"Project-Workspace " + str(i) + " " + str(j)
                ws = ws_helpers.create_workspace(self.workspaces,
                    wsId, title=wsName)
                project.add_workspace(ws)

        pat.logout()
예제 #6
0
    def setUpContent(self):
        pat.login(self.portal, testing.TEACHER)
        self.ws = ws_helpers.create_workspace(self.workspaces,
            "project_workspace", title=u"Project-Workspace")

        pat.login(self.portal, testing.SITE_ADMIN)
        self.challenge = helpers.create_challenge(
            self.challenges, "a-real-challenge")
        self.project = helpers.create_project(
            self.workspaces, 'project',
            title=u"Prøjėçt",
            description=u"A lengthy but interesting description",
            goals=u"Lorem ipsum. Add goals here.")
        ws_helpers.do_action_for(self.project, 'publish')
        self.project_admin = helpers.add_activated_student(
            self.people, u"Hörbert M@ier")
        self.project.addManager(self.project_admin.id)
        self.project.add_workspace(self.ws)
        self.project_member = helpers.add_activated_student(
            self.people, u"Memberus Projectis")
        self.ws.addMember(self.project_member.id)

        pat.logout()
 def setUpContent(self):
     pat.login(self.portal, testing.SITE_ADMIN)
     self.challenge = helpers.create_challenge(self.challenges, "a-real-challenge")
     pat.logout()
 def setUpContent(self):
     pat.login(self.portal, testing.SITE_ADMIN)
     self.challenge = helpers.create_challenge(self.challenges, "a-real-challenge")
     self.ws_owner = helpers.add_activated_student(self.people, u"Hörbert M@ier")
     self.invitee = helpers.add_activated_student(self.people, u"Karl Heinz")
     pat.logout()