diff --git a/bt5/erp5_video/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_video/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml index 4fab28f2f36d39d1a07d89e8e0ddb7c0184abe32..c2cbd85b5c8f77762826452e7add7bc9c43e6116 100644 --- a/bt5/erp5_video/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_video/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -1,4 +1,7 @@ <allowed_content_type_list> + <portal_type id="Contribution Tool"> + <item>Video</item> + </portal_type> <portal_type id="Video Module"> <item>Video</item> </portal_type> diff --git a/bt5/erp5_video/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml b/bt5/erp5_video/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml new file mode 100644 index 0000000000000000000000000000000000000000..5c1d7221f791a06f8fadc0f131850874ac6d71b0 --- /dev/null +++ b/bt5/erp5_video/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml @@ -0,0 +1,5 @@ +<hidden_content_type_list> + <portal_type id="Contribution Tool"> + <item>Video</item> + </portal_type> +</hidden_content_type_list> \ No newline at end of file diff --git a/bt5/erp5_video/PortalTypePropertySheetTemplateItem/property_sheet_list.xml b/bt5/erp5_video/PortalTypePropertySheetTemplateItem/property_sheet_list.xml new file mode 100644 index 0000000000000000000000000000000000000000..eb2f4ae9e0b70aed8853d328e1aa719c7f27f3e6 --- /dev/null +++ b/bt5/erp5_video/PortalTypePropertySheetTemplateItem/property_sheet_list.xml @@ -0,0 +1,5 @@ +<property_sheet_list> + <portal_type id="Video"> + <item>SortIndex</item> + </portal_type> +</property_sheet_list> \ No newline at end of file diff --git a/bt5/erp5_video/PortalTypeTemplateItem/portal_types/Video.xml b/bt5/erp5_video/PortalTypeTemplateItem/portal_types/Video.xml index 99afc3ebab252b835122f7d51513bb0a0517812b..5778cbb013ceeab8b7e945a6a8af94f2264d77d9 100644 --- a/bt5/erp5_video/PortalTypeTemplateItem/portal_types/Video.xml +++ b/bt5/erp5_video/PortalTypeTemplateItem/portal_types/Video.xml @@ -6,21 +6,76 @@ </pickle> <pickle> <dictionary> + <item> + <key> <string>content_icon</string> </key> + <value> <string>file_icon.png</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>A video.</string> </value> + </item> <item> <key> <string>factory</string> </key> <value> <string>addXMLObject</string> </value> </item> + <item> + <key> <string>group_list</string> </key> + <value> + <tuple> + <string>document</string> + </tuple> + </value> + </item> <item> <key> <string>id</string> </key> <value> <string>Video</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>searchable_text_property_id</string> </key> + <value> + <tuple> + <string>title</string> + <string>description</string> + <string>reference</string> + <string>version</string> + <string>short_title</string> + <string>subject_list</string> + <string>filename</string> + <string>source_project_title</string> + </tuple> + </value> + </item> <item> <key> <string>type_class</string> </key> - <value> <string>XMLObject</string> </value> + <value> <string>File</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> diff --git a/bt5/erp5_video/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_video/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml index 23311605952eda3b994b83602d39d6a7907c88f1..aaca9aa6d56941bb9d1d92de33a8ac3da3c4bd2d 100644 --- a/bt5/erp5_video/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml +++ b/bt5/erp5_video/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -1,6 +1,6 @@ <workflow_chain> <chain> <type>Video</type> - <workflow>edit_workflow</workflow> + <workflow>document_publication_workflow, document_security_interaction_workflow, edit_workflow</workflow> </chain> </workflow_chain> \ No newline at end of file diff --git a/bt5/erp5_video/SkinTemplateItem/portal_skins/erp5_video/Video_view.xml b/bt5/erp5_video/SkinTemplateItem/portal_skins/erp5_video/Video_view.xml index 4bf5c80db3917467135df2460c7306ac96348621..e8ea57f8bbdf2a43290bb1d68f3487d23d10a275 100644 --- a/bt5/erp5_video/SkinTemplateItem/portal_skins/erp5_video/Video_view.xml +++ b/bt5/erp5_video/SkinTemplateItem/portal_skins/erp5_video/Video_view.xml @@ -6,6 +6,27 @@ </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> @@ -73,6 +94,7 @@ <value> <list> <string>my_title</string> + <string>my_file</string> </list> </value> </item> diff --git a/bt5/erp5_video/SkinTemplateItem/portal_skins/erp5_video/Video_view/my_file.xml b/bt5/erp5_video/SkinTemplateItem/portal_skins/erp5_video/Video_view/my_file.xml new file mode 100644 index 0000000000000000000000000000000000000000..21bf912a1b3f2b3ca7ca48aa48bfb857f2b1f89a --- /dev/null +++ b/bt5/erp5_video/SkinTemplateItem/portal_skins/erp5_video/Video_view/my_file.xml @@ -0,0 +1,208 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="FileField" module="Products.Formulator.StandardFields"/> + </pickle> + <pickle> + <dictionary> + <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> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Upload</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_video/bt/dependency_list b/bt5/erp5_video/bt/dependency_list new file mode 100644 index 0000000000000000000000000000000000000000..9452139227d771ae44ee2fa9815d84486fc52880 --- /dev/null +++ b/bt5/erp5_video/bt/dependency_list @@ -0,0 +1 @@ +erp5_dms \ No newline at end of file diff --git a/bt5/erp5_video/bt/revision b/bt5/erp5_video/bt/revision index 56a6051ca2b02b04ef92d5150c9ef600403cb1de..d8263ee9860594d2806b0dfd1bfd17528b0ba2a4 100644 --- a/bt5/erp5_video/bt/revision +++ b/bt5/erp5_video/bt/revision @@ -1 +1 @@ -1 \ No newline at end of file +2 \ No newline at end of file diff --git a/bt5/erp5_video/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_video/bt/template_portal_type_allowed_content_type_list index 163bceabdaf11e5569b239217acbabdcd0e50a9a..82305f286c86619564ae4b20771a585695bdfed9 100644 --- a/bt5/erp5_video/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_video/bt/template_portal_type_allowed_content_type_list @@ -1 +1,2 @@ +Contribution Tool | Video Video Module | Video \ No newline at end of file diff --git a/bt5/erp5_video/bt/template_portal_type_hidden_content_type_list b/bt5/erp5_video/bt/template_portal_type_hidden_content_type_list new file mode 100644 index 0000000000000000000000000000000000000000..f56fc61de71974c6ab732562a701977f2f0da0d9 --- /dev/null +++ b/bt5/erp5_video/bt/template_portal_type_hidden_content_type_list @@ -0,0 +1 @@ +Contribution Tool | Video \ No newline at end of file diff --git a/bt5/erp5_video/bt/template_portal_type_property_sheet_list b/bt5/erp5_video/bt/template_portal_type_property_sheet_list new file mode 100644 index 0000000000000000000000000000000000000000..156b9b05d812c020694a81da78a85a6d2a6d61fc --- /dev/null +++ b/bt5/erp5_video/bt/template_portal_type_property_sheet_list @@ -0,0 +1 @@ +Video | SortIndex \ No newline at end of file diff --git a/bt5/erp5_video/bt/template_portal_type_workflow_chain_list b/bt5/erp5_video/bt/template_portal_type_workflow_chain_list index a0dd03a9942952e9df57b74013995b889f7994bd..16b6b6e6a7220b612af46bc341326acd66c6ebe5 100644 --- a/bt5/erp5_video/bt/template_portal_type_workflow_chain_list +++ b/bt5/erp5_video/bt/template_portal_type_workflow_chain_list @@ -1 +1,3 @@ +Video | document_publication_workflow +Video | document_security_interaction_workflow Video | edit_workflow \ No newline at end of file