From d8ff342b1c6707e2ea2676ef392b44665ed482b5 Mon Sep 17 00:00:00 2001 From: Gauthier Bastien Date: Thu, 21 Mar 2013 11:14:16 +0100 Subject: [PATCH] Adapted tests and corrected wrong old imports --- .../rolefield/profiles/testing/types.xml | 5 ++ .../profiles/testing/types/testingtype.xml | 55 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 src/collective/z3cform/rolefield/profiles/testing/types.xml create mode 100644 src/collective/z3cform/rolefield/profiles/testing/types/testingtype.xml diff --git a/src/collective/z3cform/rolefield/profiles/testing/types.xml b/src/collective/z3cform/rolefield/profiles/testing/types.xml new file mode 100644 index 0000000..573238e --- /dev/null +++ b/src/collective/z3cform/rolefield/profiles/testing/types.xml @@ -0,0 +1,5 @@ + + + Controls the available content types in your portal + + \ No newline at end of file diff --git a/src/collective/z3cform/rolefield/profiles/testing/types/testingtype.xml b/src/collective/z3cform/rolefield/profiles/testing/types/testingtype.xml new file mode 100644 index 0000000..dd3106f --- /dev/null +++ b/src/collective/z3cform/rolefield/profiles/testing/types/testingtype.xml @@ -0,0 +1,55 @@ + + + TestingType + None + string:${portal_url}/folder_icon.png + testingtype + string:${folder_url}/++add++testingtype + + view + True + True + + + + + False + view + + + + False + cmf.AddPortalContent + plone.dexterity.content.Container + + + + + + +<model xmlns="http://namespaces.plone.org/supermodel/schema"> + <schema> + <field name="testingField" type="collective.z3cform.rolefield.LocalRolesToPrincipals"> + <title>testingField</title> + <required>False</required> + <roles_to_assign>('Reader',)</roles_to_assign> + </field> + </schema> +</model> + + + + + + + + + + + +