Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for (multiple) image fields on content
- Loading branch information
Showing
5 changed files
with
144 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0"?> | ||
<object name="portal_types" meta_type="Plone Types Tool"> | ||
<property name="title">Controls the available content types in your portal</property> | ||
<object name="dexterity_content_type_with_two_image_fields" meta_type="Dexterity FTI"/> | ||
</object> |
60 changes: 60 additions & 0 deletions
60
...ctive/autoscaling/profiles/testing/types/dexterity_content_type_with_two_image_fields.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0"?> | ||
<object name="dexterity_content_type_with_two_image_fields" | ||
meta_type="Dexterity FTI" i18n:domain="plone" | ||
xmlns:i18n="http://xml.zope.org/namespaces/i18n"> | ||
<property name="title" | ||
i18n:translate="">dexterity content type with two image fields</property> | ||
<property name="description" i18n:translate="">None</property> | ||
<property name="icon_expr">string:${portal_url}/document_icon.png</property> | ||
<property | ||
name="factory">dexterity_content_type_with_two_image_fields</property> | ||
<property | ||
name="add_view_expr">string:${folder_url}/++add++dexterity_content_type_with_two_image_fields</property> | ||
<property name="link_target"></property> | ||
<property name="immediate_view">view</property> | ||
<property name="global_allow">True</property> | ||
<property name="filter_content_types">True</property> | ||
<property name="allowed_content_types"/> | ||
<property name="allow_discussion">False</property> | ||
<property name="default_view">view</property> | ||
<property name="view_methods"> | ||
<element value="view"/> | ||
</property> | ||
<property name="default_view_fallback">False</property> | ||
<property name="add_permission">cmf.AddPortalContent</property> | ||
<property name="klass">plone.dexterity.content.Container</property> | ||
<property name="behaviors"> | ||
<element value="plone.app.dexterity.behaviors.metadata.IDublinCore"/> | ||
<element value="plone.app.content.interfaces.INameFromTitle"/> | ||
<element value="plone.app.imagecropping.behaviors.IImageCroppingBehavior"/> | ||
</property> | ||
<property name="schema"></property> | ||
<property | ||
name="model_source"><model xmlns:security="http://namespaces.plone.org/supermodel/security" xmlns:marshal="http://namespaces.plone.org/supermodel/marshal" xmlns:form="http://namespaces.plone.org/supermodel/form" xmlns="http://namespaces.plone.org/supermodel/schema"> | ||
<schema> | ||
<field name="first_image" type="plone.namedfile.field.NamedBlobImage"> | ||
<description/> | ||
<title>First image</title> | ||
</field> | ||
<field name="second_image" type="plone.namedfile.field.NamedBlobImage"> | ||
<description/> | ||
<title>Second image</title> | ||
</field> | ||
</schema> | ||
</model></property> | ||
<property name="model_file"></property> | ||
<alias from="(Default)" to="(dynamic view)"/> | ||
<alias from="edit" to="@@edit"/> | ||
<alias from="sharing" to="@@sharing"/> | ||
<alias from="view" to="(selected layout)"/> | ||
<action title="View" action_id="view" category="object" condition_expr="" | ||
description="" icon_expr="" link_target="" url_expr="string:${object_url}" | ||
visible="True"> | ||
<permission value="View"/> | ||
</action> | ||
<action title="Edit" action_id="edit" category="object" condition_expr="" | ||
description="" icon_expr="" link_target="" | ||
url_expr="string:${object_url}/edit" visible="True"> | ||
<permission value="Modify portal content"/> | ||
</action> | ||
</object> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters