From a5330db0d22f5a8be13a7f43d260341e3d8a7204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Messiant?= Date: Fri, 12 Jul 2013 09:49:15 +0200 Subject: [PATCH] Fix test (set global allow to true for tasks types in testing profile) --- .../task/profiles/testing/types.xml | 8 ++++ .../profiles/testing/types/information.xml | 41 +++++++++++++++++ .../task/profiles/testing/types/opinion.xml | 42 ++++++++++++++++++ .../task/profiles/testing/types/task.xml | 44 +++++++++++++++++++ .../profiles/testing/types/validation.xml | 42 ++++++++++++++++++ src/collective/task/testing.py | 2 +- 6 files changed, 178 insertions(+), 1 deletion(-) create mode 100644 src/collective/task/profiles/testing/types.xml create mode 100644 src/collective/task/profiles/testing/types/information.xml create mode 100644 src/collective/task/profiles/testing/types/opinion.xml create mode 100644 src/collective/task/profiles/testing/types/task.xml create mode 100644 src/collective/task/profiles/testing/types/validation.xml diff --git a/src/collective/task/profiles/testing/types.xml b/src/collective/task/profiles/testing/types.xml new file mode 100644 index 0000000..a373224 --- /dev/null +++ b/src/collective/task/profiles/testing/types.xml @@ -0,0 +1,8 @@ + + + Controls the available content types in your portal + + + + + diff --git a/src/collective/task/profiles/testing/types/information.xml b/src/collective/task/profiles/testing/types/information.xml new file mode 100644 index 0000000..d1cf97b --- /dev/null +++ b/src/collective/task/profiles/testing/types/information.xml @@ -0,0 +1,41 @@ + + + Information + + string:${portal_url}/++resource++collective.task/task_icon.png + information + string:${folder_url}/@@add_information + + view + True + True + False + view + + + + False + cmf.AddPortalContent + collective.task.content.IInformation + collective.task.content.Information + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/collective/task/profiles/testing/types/opinion.xml b/src/collective/task/profiles/testing/types/opinion.xml new file mode 100644 index 0000000..8a75252 --- /dev/null +++ b/src/collective/task/profiles/testing/types/opinion.xml @@ -0,0 +1,42 @@ + + + Opinion + + string:${portal_url}/++resource++collective.task/task_icon.png + opinion + string:${folder_url}/++add++opinion + + view + True + True + True + view + + + + False + cmf.AddPortalContent + collective.task.content.IOpinion + collective.task.content.Opinion + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/collective/task/profiles/testing/types/task.xml b/src/collective/task/profiles/testing/types/task.xml new file mode 100644 index 0000000..d7fcb8d --- /dev/null +++ b/src/collective/task/profiles/testing/types/task.xml @@ -0,0 +1,44 @@ + + + Task + + string:${portal_url}/++resource++collective.task/task_icon.png + task + string:${folder_url}/++add++task + + view + True + True + + + + True + view + + + + False + cmf.AddPortalContent + collective.task.content.ITask + collective.task.content.Task + + + + + + + + + + + + + + + + diff --git a/src/collective/task/profiles/testing/types/validation.xml b/src/collective/task/profiles/testing/types/validation.xml new file mode 100644 index 0000000..b375ad6 --- /dev/null +++ b/src/collective/task/profiles/testing/types/validation.xml @@ -0,0 +1,42 @@ + + + Validation + + string:${portal_url}/++resource++collective.task/task_icon.png + validation + string:${folder_url}/++add++validation + + view + True + True + True + view + + + + False + cmf.AddPortalContent + collective.task.content.IValidation + collective.task.content.Validation + + + + + + + + + + + + + + + + + diff --git a/src/collective/task/testing.py b/src/collective/task/testing.py index da07aed..0779497 100644 --- a/src/collective/task/testing.py +++ b/src/collective/task/testing.py @@ -39,7 +39,7 @@ class CollectiveTaskLayer(PloneSandboxLayer): def setUpPloneSite(self, portal): """Set up Plone.""" # Install into Plone site using portal_setup - applyProfile(portal, 'collective.task:default') + applyProfile(portal, 'collective.task:testing') # create users memberhelpers.createMembers(portal, USERDEFS)