From e57e61ff4a087bbdb4bdb0b960f88976abd4909f Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Wed, 14 Nov 2012 13:05:48 +0000 Subject: [PATCH] erp5_safeimage bt5 --- .../allowed_content_types.xml | 17 ++ .../portal_types/Image%20Tile%20Group.xml | 62 ++++++ .../Image%20Tile%20Transformed.xml | 64 +++++++ .../portal_types/Image%20Tile.xml | 64 +++++++ .../workflow_chain_type.xml | 14 ++ .../portal_skins/erp5_safeimage.xml | 47 +++++ .../Base_viewSafeImageFieldLibrary.xml | 137 ++++++++++++++ .../my_view_mode_contributor_title_list.xml | 90 +++++++++ .../my_view_mode_description.xml | 90 +++++++++ .../my_view_mode_file.xml | 90 +++++++++ .../my_view_mode_int_index.xml | 90 +++++++++ .../my_view_mode_listbox.xml | 140 ++++++++++++++ .../my_view_mode_reference.xml | 90 +++++++++ .../my_view_mode_short_title.xml | 90 +++++++++ .../my_view_mode_title.xml | 90 +++++++++ .../ERP5Site_getTileImageMetadataList.xml | 86 +++++++++ ...Site_getTileImageTransformMetadataList.xml | 86 +++++++++ .../erp5_safeimage/ERP5Site_viewSafeImage.xml | 88 +++++++++ .../erp5_safeimage/ImageTileGroup_view.xml | 177 ++++++++++++++++++ .../ImageTileGroup_view/listbox.xml | 140 ++++++++++++++ .../my_contributor_title_list.xml | 90 +++++++++ .../ImageTileGroup_view/my_description.xml | 90 +++++++++ .../ImageTileGroup_view/my_file.xml | 90 +++++++++ .../ImageTileGroup_view/my_int_index.xml | 90 +++++++++ .../ImageTileGroup_view/my_reference.xml | 90 +++++++++ .../ImageTileGroup_view/my_short_title.xml | 90 +++++++++ .../ImageTileGroup_view/my_title.xml | 90 +++++++++ .../ImageTileTransformed_view.xml | 177 ++++++++++++++++++ .../ImageTileTransformed_view/listbox.xml | 172 +++++++++++++++++ .../my_contributor_title_list.xml | 90 +++++++++ .../my_description.xml | 90 +++++++++ .../ImageTileTransformed_view/my_file.xml | 90 +++++++++ .../my_int_index.xml | 90 +++++++++ .../my_reference.xml | 90 +++++++++ .../my_short_title.xml | 90 +++++++++ .../ImageTileTransformed_view/my_title.xml | 90 +++++++++ .../erp5_safeimage/ImageTile_view.xml | 177 ++++++++++++++++++ .../erp5_safeimage/ImageTile_view/listbox.xml | 172 +++++++++++++++++ .../my_contributor_title_list.xml | 90 +++++++++ .../ImageTile_view/my_description.xml | 90 +++++++++ .../erp5_safeimage/ImageTile_view/my_file.xml | 90 +++++++++ .../ImageTile_view/my_int_index.xml | 90 +++++++++ .../ImageTile_view/my_reference.xml | 90 +++++++++ .../ImageTile_view/my_short_title.xml | 90 +++++++++ .../ImageTile_view/my_title.xml | 90 +++++++++ .../TileImageTransformed_getTransform.xml | 88 +++++++++ .../TileImage_getMetadataAsJSON.xml | 90 +++++++++ .../TestTemplateItem/testSafeImage.py | 136 ++++++++++++++ bt5/erp5_safeimage/bt/revision | 1 + bt5/erp5_safeimage/bt/template_format_version | 1 + ...late_portal_type_allowed_content_type_list | 7 + .../bt/template_portal_type_id_list | 3 + .../template_portal_type_workflow_chain_list | 3 + bt5/erp5_safeimage/bt/template_skin_id_list | 1 + bt5/erp5_safeimage/bt/template_test_id_list | 1 + bt5/erp5_safeimage/bt/title | 1 + 56 files changed, 4672 insertions(+) create mode 100644 bt5/erp5_safeimage/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml create mode 100644 bt5/erp5_safeimage/PortalTypeTemplateItem/portal_types/Image%20Tile%20Group.xml create mode 100644 bt5/erp5_safeimage/PortalTypeTemplateItem/portal_types/Image%20Tile%20Transformed.xml create mode 100644 bt5/erp5_safeimage/PortalTypeTemplateItem/portal_types/Image%20Tile.xml create mode 100644 bt5/erp5_safeimage/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_contributor_title_list.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_description.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_file.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_int_index.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_listbox.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_reference.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_short_title.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_title.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ERP5Site_getTileImageMetadataList.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ERP5Site_getTileImageTransformMetadataList.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ERP5Site_viewSafeImage.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/listbox.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_contributor_title_list.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_description.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_file.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_int_index.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_reference.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_short_title.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_title.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/listbox.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_contributor_title_list.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_description.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_file.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_int_index.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_reference.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_short_title.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_title.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/listbox.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_contributor_title_list.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_description.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_file.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_int_index.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_reference.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_short_title.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_title.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/TileImageTransformed_getTransform.xml create mode 100644 bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/TileImage_getMetadataAsJSON.xml create mode 100644 bt5/erp5_safeimage/TestTemplateItem/testSafeImage.py create mode 100644 bt5/erp5_safeimage/bt/revision create mode 100644 bt5/erp5_safeimage/bt/template_format_version create mode 100644 bt5/erp5_safeimage/bt/template_portal_type_allowed_content_type_list create mode 100644 bt5/erp5_safeimage/bt/template_portal_type_id_list create mode 100644 bt5/erp5_safeimage/bt/template_portal_type_workflow_chain_list create mode 100644 bt5/erp5_safeimage/bt/template_skin_id_list create mode 100644 bt5/erp5_safeimage/bt/template_test_id_list create mode 100644 bt5/erp5_safeimage/bt/title diff --git a/bt5/erp5_safeimage/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_safeimage/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml new file mode 100644 index 0000000000..3bf5fda1f2 --- /dev/null +++ b/bt5/erp5_safeimage/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -0,0 +1,17 @@ +<allowed_content_type_list> + <portal_type id="Image Module"> + <item>Image Tile</item> + <item>Image Tile Transformed</item> + </portal_type> + <portal_type id="Image Tile"> + <item>Embedded File</item> + <item>Image Tile Group</item> + </portal_type> + <portal_type id="Image Tile Group"> + <item>Image</item> + </portal_type> + <portal_type id="Image Tile Transformed"> + <item>Embedded File</item> + <item>Image Tile Group</item> + </portal_type> +</allowed_content_type_list> \ No newline at end of file diff --git a/bt5/erp5_safeimage/PortalTypeTemplateItem/portal_types/Image%20Tile%20Group.xml b/bt5/erp5_safeimage/PortalTypeTemplateItem/portal_types/Image%20Tile%20Group.xml new file mode 100644 index 0000000000..8166a75194 --- /dev/null +++ b/bt5/erp5_safeimage/PortalTypeTemplateItem/portal_types/Image%20Tile%20Group.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Base Type" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Tile Group Image contains the parts of the images. In other words, it contains the image processed by Zoomfy.</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Image Tile Group</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Base Type</string> </value> + </item> + <item> + <key> <string>type_class</string> </key> + <value> <string>Image</string> </value> + </item> + <item> + <key> <string>type_interface</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>type_mixin</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/PortalTypeTemplateItem/portal_types/Image%20Tile%20Transformed.xml b/bt5/erp5_safeimage/PortalTypeTemplateItem/portal_types/Image%20Tile%20Transformed.xml new file mode 100644 index 0000000000..b2f0c69348 --- /dev/null +++ b/bt5/erp5_safeimage/PortalTypeTemplateItem/portal_types/Image%20Tile%20Transformed.xml @@ -0,0 +1,64 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Base Type" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Tile of each image, which contains a XML\'s file and the Tile\'s Group Folder and JSON file specifying the processing. </string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Image Tile Transformed</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Base Type</string> </value> + </item> + <item> + <key> <string>type_class</string> </key> + <value> <string>TileImageTransformed</string> </value> + </item> + <item> + <key> <string>type_interface</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>type_mixin</string> </key> + <value> + <tuple> + <string>BaseExtensibleTraversableMixin</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/PortalTypeTemplateItem/portal_types/Image%20Tile.xml b/bt5/erp5_safeimage/PortalTypeTemplateItem/portal_types/Image%20Tile.xml new file mode 100644 index 0000000000..71be546e6b --- /dev/null +++ b/bt5/erp5_safeimage/PortalTypeTemplateItem/portal_types/Image%20Tile.xml @@ -0,0 +1,64 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Base Type" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Tile of each image, which contains a XML\'s file and the Tile\'s Group Folder</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Image Tile</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Base Type</string> </value> + </item> + <item> + <key> <string>type_class</string> </key> + <value> <string>TileImage</string> </value> + </item> + <item> + <key> <string>type_interface</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>type_mixin</string> </key> + <value> + <tuple> + <string>BaseExtensibleTraversableMixin</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_safeimage/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml new file mode 100644 index 0000000000..08a41323a7 --- /dev/null +++ b/bt5/erp5_safeimage/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -0,0 +1,14 @@ +<workflow_chain> + <chain> + <type>Image Tile</type> + <workflow>validation_workflow</workflow> + </chain> + <chain> + <type>Image Tile Group</type> + <workflow>validation_workflow</workflow> + </chain> + <chain> + <type>Image Tile Transformed</type> + <workflow>validation_workflow</workflow> + </chain> +</workflow_chain> \ No newline at end of file diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage.xml new file mode 100644 index 0000000000..bb1f023263 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage.xml @@ -0,0 +1,47 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Folder" module="OFS.Folder"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>business_template_skin_layer_priority</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>float</string> </value> + </item> + </dictionary> + </tuple> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>business_template_skin_layer_priority</string> </key> + <value> <float>3.0</float> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>erp5_safeimage</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary.xml new file mode 100644 index 0000000000..23cdfbbfad --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary.xml @@ -0,0 +1,137 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>my_view_mode_listbox</string> + <string>my_view_mode_contributor_title_list</string> + <string>my_view_mode_description</string> + <string>my_view_mode_file</string> + <string>my_view_mode_int_index</string> + <string>my_view_mode_reference</string> + <string>my_view_mode_short_title</string> + <string>my_view_mode_title</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_contributor_title_list.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_contributor_title_list.xml new file mode 100644 index 0000000000..f0fbf15f01 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_contributor_title_list.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_view_mode_contributor_title_list</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_contributor_title_list</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewDMSFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_description.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_description.xml new file mode 100644 index 0000000000..fe61522624 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_description.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_view_mode_description</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_description</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewDMSFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_file.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_file.xml new file mode 100644 index 0000000000..a13f2523a2 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_file.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_view_mode_file</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_file</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewDMSFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_int_index.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_int_index.xml new file mode 100644 index 0000000000..c493278768 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_int_index.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_view_mode_int_index</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_int_index</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewDMSFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_listbox.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_listbox.xml new file mode 100644 index 0000000000..9a48ba79b8 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_listbox.xml @@ -0,0 +1,140 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>columns</string> + <string>portal_types</string> + <string>selection_name</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_view_mode_listbox</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>creation_date</string> + <string>Date</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_listbox</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Discussion Thread</string> + <string>Discussion Thread</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>portal_types</string> </key> + <value> + <list> + <tuple> + <string>Image</string> + <string>Image</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string>tile_image_group_selection</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>SafeImageFieldLibrary_listbox</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_reference.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_reference.xml new file mode 100644 index 0000000000..2cb78e742a --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_reference.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_view_mode_reference</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_reference</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewDMSFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_short_title.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_short_title.xml new file mode 100644 index 0000000000..254fb372de --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_short_title.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_view_mode_short_title</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_short_title</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewDMSFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_title.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_title.xml new file mode 100644 index 0000000000..04198d6c17 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/Base_viewSafeImageFieldLibrary/my_view_mode_title.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_view_mode_title</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_title</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewDMSFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ERP5Site_getTileImageMetadataList.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ERP5Site_getTileImageMetadataList.xml new file mode 100644 index 0000000000..11c7f5c05c --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ERP5Site_getTileImageMetadataList.xml @@ -0,0 +1,86 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>import json\n +\n +context.REQUEST.response.setHeader(\'Access-Control-Allow-Origin\', \'*\')\n +data = {}\n +data["image_list"] = []\n +image_list = data["image_list"]\n +for tile_image in context.portal_catalog(portal_type="Image Tile"):\n + title = tile_image.getTitle() \n + id = tile_image.getId()\n + image_list.append({"title":title, "id": id})\n + \n +return json.dumps(data)\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>_proxy_roles</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ERP5Site_getTileImageMetadataList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ERP5Site_getTileImageTransformMetadataList.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ERP5Site_getTileImageTransformMetadataList.xml new file mode 100644 index 0000000000..d7e6463481 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ERP5Site_getTileImageTransformMetadataList.xml @@ -0,0 +1,86 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>import json\n +\n +context.REQUEST.response.setHeader(\'Access-Control-Allow-Origin\', \'*\')\n +data = {}\n +data["image_list"] = []\n +image_list = data["image_list"]\n +for tile_image in context.portal_catalog(portal_type="Image Tile Transformed"):\n + title = tile_image.getTitle() \n + id = tile_image.getId()\n + image_list.append({"title":title, "id": id})\n + \n +return json.dumps(data)\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>_proxy_roles</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ERP5Site_getTileImageTransformMetadataList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ERP5Site_viewSafeImage.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ERP5Site_viewSafeImage.xml new file mode 100644 index 0000000000..7d909b3b87 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ERP5Site_viewSafeImage.xml @@ -0,0 +1,88 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_text</string> </key> + <value> <unicode encoding="cdata"><![CDATA[ + +<!DOCTYPE html>\n +<html>\n +<head>\n + <meta charset="UTF-8"> \n + <script type="text/javascript" src="jquery-1.7.2.js"></script>\n + <script type="text/javascript">\n + $(document).ready(function(){\n + $.get(\'http://localhost:12001/erp5/portal_skins/erp5_tile/ERP5Site_getTileImageMetadataList\', function(data) {\n + $(\'#result\').html(data);\n + alert(\'Load was performed.\');\n + });\n + \n +\n + });\n + </script>\n +</head>\n +<body> \n +\n + <button>Get JSON data</button>\n + <div id="result"></div>\n +\n +</body>\n +</html> + +]]></unicode> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ERP5Site_viewSafeImage</string> </value> + </item> + <item> + <key> <string>output_encoding</string> </key> + <value> <string>utf-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <unicode></unicode> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view.xml new file mode 100644 index 0000000000..bb8a99eee6 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view.xml @@ -0,0 +1,177 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>Base_edit</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string>multipart/form-data</string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left (Document Reference)</string> + <string>right (Publication Information)</string> + <string>center_left</string> + <string>center_right</string> + <string>center</string> + <string>hidden</string> + <string>bottom</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list> + <string>listbox</string> + </list> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list> + <string>my_description</string> + </list> + </value> + </item> + <item> + <key> <string>center_left</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>center_right</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list> + <string>my_contributor_title_list</string> + </list> + </value> + </item> + <item> + <key> <string>left (Document Reference)</string> </key> + <value> + <list> + <string>my_title</string> + <string>my_short_title</string> + </list> + </value> + </item> + <item> + <key> <string>right (Publication Information)</string> </key> + <value> + <list> + <string>my_reference</string> + <string>my_int_index</string> + <string>my_file</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ImageTileGroup_view</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>ImageTileGroup_view</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_view</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Folder</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>update_action_title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/listbox.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/listbox.xml new file mode 100644 index 0000000000..b1e75d993b --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/listbox.xml @@ -0,0 +1,140 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>columns</string> + <string>portal_types</string> + <string>selection_name</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>listbox</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>creation_date</string> + <string>Date</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_listbox</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Discussion Thread</string> + <string>Discussion Thread</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>portal_types</string> </key> + <value> + <list> + <tuple> + <string>Image</string> + <string>Image</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string>tile_image_group_selection</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Tile Image Group</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_contributor_title_list.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_contributor_title_list.xml new file mode 100644 index 0000000000..c3c1167d57 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_contributor_title_list.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_contributor_title_list</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_contributor_title_list</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_description.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_description.xml new file mode 100644 index 0000000000..bd085f3190 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_description.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_description</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_description</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_file.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_file.xml new file mode 100644 index 0000000000..9c91d9859f --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_file.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_file</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_file</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_int_index.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_int_index.xml new file mode 100644 index 0000000000..2603d897d6 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_int_index.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_int_index</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_int_index</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_reference.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_reference.xml new file mode 100644 index 0000000000..f411c77514 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_reference.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_reference</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_reference</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_short_title.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_short_title.xml new file mode 100644 index 0000000000..5e6cd3cae4 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_short_title.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_short_title</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_short_title</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_title.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_title.xml new file mode 100644 index 0000000000..045ff8cb5f --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileGroup_view/my_title.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_title</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_title</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view.xml new file mode 100644 index 0000000000..719e26e101 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view.xml @@ -0,0 +1,177 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>Base_edit</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string>multipart/form-data</string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left (Document Reference)</string> + <string>right (Publication Information)</string> + <string>center_left</string> + <string>center_right</string> + <string>center</string> + <string>hidden</string> + <string>bottom</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list> + <string>listbox</string> + </list> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list> + <string>my_description</string> + </list> + </value> + </item> + <item> + <key> <string>center_left</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>center_right</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list> + <string>my_contributor_title_list</string> + </list> + </value> + </item> + <item> + <key> <string>left (Document Reference)</string> </key> + <value> + <list> + <string>my_title</string> + <string>my_short_title</string> + </list> + </value> + </item> + <item> + <key> <string>right (Publication Information)</string> </key> + <value> + <list> + <string>my_reference</string> + <string>my_int_index</string> + <string>my_file</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ImageTileTransformed_view</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>ImageTile_view</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_view</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Folder</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>update_action_title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/listbox.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/listbox.xml new file mode 100644 index 0000000000..e841833bb7 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/listbox.xml @@ -0,0 +1,172 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>columns</string> + <string>count_method</string> + <string>list_method</string> + <string>portal_types</string> + <string>selection_name</string> + <string>sort</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>listbox</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>creation_date</string> + <string>Date</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>count_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_listbox</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Discussion Thread</string> + <string>Discussion Thread</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>portal_types</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string>tile_image_transformed_selection</string> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> + <list> + <tuple> + <string>Date</string> + <string>Â asc</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Tile Image Transformed</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Method" module="Products.Formulator.MethodField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>objectValues</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_contributor_title_list.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_contributor_title_list.xml new file mode 100644 index 0000000000..c3c1167d57 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_contributor_title_list.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_contributor_title_list</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_contributor_title_list</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_description.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_description.xml new file mode 100644 index 0000000000..bd085f3190 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_description.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_description</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_description</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_file.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_file.xml new file mode 100644 index 0000000000..9c91d9859f --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_file.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_file</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_file</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_int_index.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_int_index.xml new file mode 100644 index 0000000000..2603d897d6 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_int_index.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_int_index</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_int_index</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_reference.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_reference.xml new file mode 100644 index 0000000000..f411c77514 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_reference.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_reference</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_reference</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_short_title.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_short_title.xml new file mode 100644 index 0000000000..5e6cd3cae4 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_short_title.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_short_title</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_short_title</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_title.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_title.xml new file mode 100644 index 0000000000..045ff8cb5f --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTileTransformed_view/my_title.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_title</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_title</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view.xml new file mode 100644 index 0000000000..642e7693c5 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view.xml @@ -0,0 +1,177 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>Base_edit</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string>multipart/form-data</string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left (Document Reference)</string> + <string>right (Publication Information)</string> + <string>center_left</string> + <string>center_right</string> + <string>center</string> + <string>hidden</string> + <string>bottom</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list> + <string>listbox</string> + </list> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list> + <string>my_description</string> + </list> + </value> + </item> + <item> + <key> <string>center_left</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>center_right</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list> + <string>my_contributor_title_list</string> + </list> + </value> + </item> + <item> + <key> <string>left (Document Reference)</string> </key> + <value> + <list> + <string>my_title</string> + <string>my_short_title</string> + </list> + </value> + </item> + <item> + <key> <string>right (Publication Information)</string> </key> + <value> + <list> + <string>my_reference</string> + <string>my_int_index</string> + <string>my_file</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ImageTile_view</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>ImageTile_view</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_view</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Folder</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>update_action_title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/listbox.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/listbox.xml new file mode 100644 index 0000000000..c3c6b5f2bb --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/listbox.xml @@ -0,0 +1,172 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>columns</string> + <string>count_method</string> + <string>list_method</string> + <string>portal_types</string> + <string>selection_name</string> + <string>sort</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>listbox</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>creation_date</string> + <string>Date</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>count_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_listbox</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Discussion Thread</string> + <string>Discussion Thread</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>portal_types</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string>tile_image_selection</string> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> + <list> + <tuple> + <string>Date</string> + <string>Â asc</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Tile Image</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Method" module="Products.Formulator.MethodField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>objectValues</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_contributor_title_list.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_contributor_title_list.xml new file mode 100644 index 0000000000..c3c1167d57 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_contributor_title_list.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_contributor_title_list</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_contributor_title_list</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_description.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_description.xml new file mode 100644 index 0000000000..bd085f3190 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_description.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_description</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_description</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_file.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_file.xml new file mode 100644 index 0000000000..c8a0a799af --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_file.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_file</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_file</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewDMSFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_int_index.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_int_index.xml new file mode 100644 index 0000000000..2603d897d6 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_int_index.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_int_index</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_int_index</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_reference.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_reference.xml new file mode 100644 index 0000000000..f411c77514 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_reference.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_reference</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_reference</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_short_title.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_short_title.xml new file mode 100644 index 0000000000..5e6cd3cae4 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_short_title.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_short_title</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_short_title</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_title.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_title.xml new file mode 100644 index 0000000000..045ff8cb5f --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/ImageTile_view/my_title.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_title</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_title</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewSafeImageFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/TileImageTransformed_getTransform.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/TileImageTransformed_getTransform.xml new file mode 100644 index 0000000000..e1bca2e407 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/TileImageTransformed_getTransform.xml @@ -0,0 +1,88 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>import json\n +\n +context.REQUEST.response.setHeader(\'Access-Control-Allow-Origin\', \'*\')\n +file = context["TransformFile.txt"].getData().split()\n +data = {}\n +data["transforms"]=[]\n +transforms=data["transforms"]\n +#Reverse Text File to improve performance in the browser\n +while(file):\n + line = file[:6]\n + transforms.append({"tilegroup":line[0],"tileid":line[1],"algorithm":line[2],"param1":line[3],"param2":line[4],"num":line[5]})\n + del(file[:6])\n + \n +return json.dumps(transforms)\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>_proxy_roles</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TileImageTransformed_getTransform</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/TileImage_getMetadataAsJSON.xml b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/TileImage_getMetadataAsJSON.xml new file mode 100644 index 0000000000..837e8565d1 --- /dev/null +++ b/bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/TileImage_getMetadataAsJSON.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>import json\n +\n +context.REQUEST.response.setHeader(\'Access-Control-Allow-Origin\', \'*\')\n +tile_image = context\n +xml_file = tile_image["ImageProperties.xml"]\n +xml_split = xml_file.getData().split(" ")\n +widthpre = xml_split[1].split("=")\n +heightpre = xml_split[2].split("=")\n +width = widthpre[1][1:-1]\n +height = heightpre[1][1:-1] \n +data = {}\n +data["sizes"] = []\n +sizes = data["sizes"]\n +sizes.append({"width":width,"height":height})\n +\n +return json.dumps(data)\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>_proxy_roles</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TileImage_getMetadataAsJSON</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/TestTemplateItem/testSafeImage.py b/bt5/erp5_safeimage/TestTemplateItem/testSafeImage.py new file mode 100644 index 0000000000..e70fe2e63d --- /dev/null +++ b/bt5/erp5_safeimage/TestTemplateItem/testSafeImage.py @@ -0,0 +1,136 @@ +#from Products.ERP5.Document.Image import Image +#from Products.ERP5Type.tests.utils import FileUpload +import Image +from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase +import transaction +from zLOG import LOG,INFO,ERROR +import json +from cStringIO import StringIO +import os + + +class FileUpload(file): + """Act as an uploaded file. + """ + __allow_access_to_unprotected_subobjects__ = 1 + def __init__(self, path, name): + self.filename = name + file.__init__(self, path) + self.headers = {} + + +def makeFilePath(name): + return os.path.join(os.path.dirname(__file__), 'tmp', name) + +def makeFileUpload(name, as_name=None): + if as_name is None: + as_name = name + path = makeFilePath(name) + return FileUpload(path, as_name) + +class TestSafeImage(ERP5TypeTestCase): + + def afterSetUp(self): + portal = self.getPortalObject() + self.image_module = self.portal.getDefaultModule(portal_type = 'Image Module') + self.assertTrue(self.image_module is not None) + if getattr(self.image_module,'testImage',None) is not None: + self.image_module.manage_delObjects(ids=['testImage']) + if getattr(self.image_module,'testTile',None) is not None: + self.image_module.manage_delObjects(ids=['testTile']) + if getattr(self.image_module,'testTileTransformed',None) is not None: + self.image_module.manage_delObjects(ids=['testTileTransformed']) + transaction.commit() + self.tic() + + def _createImage(self): + portal = self.getPortalObject() + _image = makeFileUpload('image_test.jpg') + image = self.image_module.newContent(portal_type='Image',title='testImage', + id='testImage',file=_image,filename='testImage') + return image + + def _createTileImage(self): + portal = self.getPortalObject() + tile_image = makeFileUpload('image_test.jpg') + tile = self.image_module.newContent(portal_type='Image Tile',title='testTile', + id='testTile',file=tile_image,filename='testTile') + return tile + + def _createTileImageTransformed(self): + portal = self.getPortalObject() + tile_image_transformed = makeFileUpload('image_test.jpg') + tile_transformed = self.image_module.newContent(portal_type='Image Tile Transformed', + title='testTileTransformed',id='testTileTransformed', + file=tile_image_transformed,filename='testTileTransformed') + return tile_transformed + + def test_01_CreateImage(self): + image = self._createImage() + self.assertTrue(image.hasData()) + transaction.commit() + self.tic() + self.assertNotEqual(image,None) + + def test_02_CreateTileImage(self): + """" + We are going to check that tile image has following structure + 1/ + 1/Image Tile Group + 1/Image Tile Group/0-0-0 + 1/Image Tile Group/1-0-0 + 1/ImageProperties.xml + """ + tile = self._createTileImage() + transaction.commit() + self.tic() + self.assertNotEqual(tile,None) + image_property = getattr(tile, "ImageProperties.xml", None) + self.assertEquals(image_property.getData(), + """<IMAGE_PROPERTIES WIDTH="660" HEIGHT="495" NUMTILES="9" NUMIMAGES="1" VERSION="1.8" TILESIZE="256" />""") + self.assertNotEqual(image_property, None) + self.assertEquals("Embedded File", image_property.getPortalType()) + image_group = getattr(tile, "TileGroup0", None) + self.assertNotEquals(image_group, None) + self.assertEquals("Image Tile Group",image_group.getPortalType()) + splitted_image_list = image_group.objectValues(portal_type="Image") + self.assertEquals(set(['0-0-0','1-0-0','1-1-0','2-0-0','2-0-1','2-1-0','2-1-1','2-2-0','2-2-1']), + set([x.getId() for x in splitted_image_list])) + for x in splitted_image_list: + self.assertTrue(x.hasData()) + self.assertEquals(123,image_group['0-0-0'].getHeight()) + self.assertEquals(165,image_group['0-0-0'].getWidth()) + + def test_03_CreateTileImageTransformed(self): + """" + We are going to check that tile image has following structure + 1/ + 1/Image Tile Group + 1/Image Tile Group/0-0-0 + 1/Image Tile Group/1-0-0 + 1/ImageProperties.xml + 1/TransformFile.txt + """ + tile_transformed = self._createTileImageTransformed() + transaction.commit() + self.tic() + self.assertNotEqual(tile_transformed,None) + image_property = getattr(tile_transformed, "ImageProperties.xml", None) + self.assertEquals(image_property.getData(), + """<IMAGE_PROPERTIES WIDTH="660" HEIGHT="495" NUMTILES="9" NUMIMAGES="1" VERSION="1.8" TILESIZE="256" />""") + self.assertNotEqual(image_property, None) + self.assertEquals("Embedded File", image_property.getPortalType()) + image_transform = getattr(tile_transformed, "TransformFile.txt", None) + self.assertTrue(image_transform.getData().split()[1],'2-0-0') + self.assertNotEqual(image_transform, None) + self.assertEquals("Embedded File", image_transform.getPortalType()) + image_group = getattr(tile_transformed, "TileGroup0", None) + self.assertNotEquals(image_group, None) + self.assertEquals("Image Tile Group",image_group.getPortalType()) + splitted_image_list = image_group.objectValues(portal_type="Image") + self.assertEquals(set(['0-0-0','1-0-0','1-1-0','2-0-0','2-0-1','2-1-0','2-1-1','2-2-0','2-2-1']), + set([x.getId() for x in splitted_image_list])) + for x in splitted_image_list: + self.assertTrue(x.hasData()) + self.assertEquals(123,image_group['0-0-0'].getHeight()) + self.assertEquals(165,image_group['0-0-0'].getWidth()) diff --git a/bt5/erp5_safeimage/bt/revision b/bt5/erp5_safeimage/bt/revision new file mode 100644 index 0000000000..56a6051ca2 --- /dev/null +++ b/bt5/erp5_safeimage/bt/revision @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/bt5/erp5_safeimage/bt/template_format_version b/bt5/erp5_safeimage/bt/template_format_version new file mode 100644 index 0000000000..56a6051ca2 --- /dev/null +++ b/bt5/erp5_safeimage/bt/template_format_version @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/bt5/erp5_safeimage/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_safeimage/bt/template_portal_type_allowed_content_type_list new file mode 100644 index 0000000000..cd7a83037b --- /dev/null +++ b/bt5/erp5_safeimage/bt/template_portal_type_allowed_content_type_list @@ -0,0 +1,7 @@ +Image Module | Image Tile +Image Module | Image Tile Transformed +Image Tile Group | Image +Image Tile Transformed | Embedded File +Image Tile Transformed | Image Tile Group +Image Tile | Embedded File +Image Tile | Image Tile Group \ No newline at end of file diff --git a/bt5/erp5_safeimage/bt/template_portal_type_id_list b/bt5/erp5_safeimage/bt/template_portal_type_id_list new file mode 100644 index 0000000000..88aa8d5761 --- /dev/null +++ b/bt5/erp5_safeimage/bt/template_portal_type_id_list @@ -0,0 +1,3 @@ +Image Tile +Image Tile Group +Image Tile Transformed \ No newline at end of file diff --git a/bt5/erp5_safeimage/bt/template_portal_type_workflow_chain_list b/bt5/erp5_safeimage/bt/template_portal_type_workflow_chain_list new file mode 100644 index 0000000000..6ee4f3d9b4 --- /dev/null +++ b/bt5/erp5_safeimage/bt/template_portal_type_workflow_chain_list @@ -0,0 +1,3 @@ +Image Tile Group | validation_workflow +Image Tile Transformed | validation_workflow +Image Tile | validation_workflow \ No newline at end of file diff --git a/bt5/erp5_safeimage/bt/template_skin_id_list b/bt5/erp5_safeimage/bt/template_skin_id_list new file mode 100644 index 0000000000..abc5ffbb4d --- /dev/null +++ b/bt5/erp5_safeimage/bt/template_skin_id_list @@ -0,0 +1 @@ +erp5_safeimage \ No newline at end of file diff --git a/bt5/erp5_safeimage/bt/template_test_id_list b/bt5/erp5_safeimage/bt/template_test_id_list new file mode 100644 index 0000000000..5bf1c89d73 --- /dev/null +++ b/bt5/erp5_safeimage/bt/template_test_id_list @@ -0,0 +1 @@ +testSafeImage \ No newline at end of file diff --git a/bt5/erp5_safeimage/bt/title b/bt5/erp5_safeimage/bt/title new file mode 100644 index 0000000000..abc5ffbb4d --- /dev/null +++ b/bt5/erp5_safeimage/bt/title @@ -0,0 +1 @@ +erp5_safeimage \ No newline at end of file -- 2.30.9