Commit 3e9163f6 authored by Rafael Monnerat's avatar Rafael Monnerat

Get Description and Image from Workflow itself.

Instead get Informations from the Business Configuration, get information directly from the Workflow Document. This easly creates a identity if the workflow and also simplify the process of Pré-configuration.
parent c61ccc13
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>action_type/object_view</string>
</tuple>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_view</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>configurator_settings</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>View</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>10.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Configurator</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Expression" module="Products.CMFCore.Expression"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/Workflow_viewConfigurator</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -52,4 +52,7 @@ ...@@ -52,4 +52,7 @@
<portal_type id="Portal Type Roles Spreadsheet Configurator Item"> <portal_type id="Portal Type Roles Spreadsheet Configurator Item">
<item>Embedded File</item> <item>Embedded File</item>
</portal_type> </portal_type>
<portal_type id="Workflow">
<item>Embedded File</item>
</portal_type>
</allowed_content_type_list> </allowed_content_type_list>
\ No newline at end of file
...@@ -15,4 +15,7 @@ ...@@ -15,4 +15,7 @@
<item>Email</item> <item>Email</item>
<item>Telephone</item> <item>Telephone</item>
</portal_type> </portal_type>
<portal_type id="Workflow">
<item>Embedded File</item>
</portal_type>
</hidden_content_type_list> </hidden_content_type_list>
\ No newline at end of file
<property_sheet_list> <property_sheet_list>
<portal_type id="Workflow"> <portal_type id="Workflow">
<item>DefaultImage</item> <item>DefaultImage</item>
<item>WorkflowConfigurator</item>
</portal_type> </portal_type>
</property_sheet_list> </property_sheet_list>
\ No newline at end of file
...@@ -104,7 +104,9 @@ ...@@ -104,7 +104,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
...@@ -121,7 +123,9 @@ ...@@ -121,7 +123,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
......
...@@ -96,7 +96,9 @@ ...@@ -96,7 +96,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
...@@ -113,7 +115,9 @@ ...@@ -113,7 +115,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
......
...@@ -60,7 +60,9 @@ ...@@ -60,7 +60,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
...@@ -77,7 +79,9 @@ ...@@ -77,7 +79,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
......
...@@ -86,7 +86,9 @@ ...@@ -86,7 +86,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
...@@ -103,7 +105,9 @@ ...@@ -103,7 +105,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
......
...@@ -61,7 +61,9 @@ ...@@ -61,7 +61,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
...@@ -78,7 +80,9 @@ ...@@ -78,7 +80,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
......
...@@ -86,7 +86,9 @@ ...@@ -86,7 +86,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
...@@ -103,7 +105,9 @@ ...@@ -103,7 +105,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
......
...@@ -86,7 +86,9 @@ ...@@ -86,7 +86,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
...@@ -103,7 +105,9 @@ ...@@ -103,7 +105,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>domain_name</string> </key> <key> <string>domain_name</string> </key>
<value> <none/> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>property_name</string> </key> <key> <string>property_name</string> </key>
......
...@@ -101,8 +101,6 @@ ...@@ -101,8 +101,6 @@
<string>my_configuration_state</string> <string>my_configuration_state</string>
<string>my_translated_simulation_state_title</string> <string>my_translated_simulation_state_title</string>
<string>my_translated_validation_state_title</string> <string>my_translated_validation_state_title</string>
<string>my_default_image_absolute_url</string>
<string>my_default_image_file</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -112,7 +110,6 @@ ...@@ -112,7 +110,6 @@
<list> <list>
<string>my_resource_title</string> <string>my_resource_title</string>
<string>my_specialise_title</string> <string>my_specialise_title</string>
<string>my_configuration_after_script_id</string>
<string>my_comment</string> <string>my_comment</string>
</list> </list>
</value> </value>
......
<?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</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_configuration_after_script_id</string>
</list>
</value>
</item>
<item>
<key> <string>right</string> </key>
<value>
<list>
<string>my_default_image_absolute_url</string>
<string>my_default_image_file</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Workflow_viewConfigurator</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>Workflow_viewConfigurator</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>Configutator Settings</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>
...@@ -50,10 +50,10 @@ ...@@ -50,10 +50,10 @@
<tal:block repeat="bc business_configuration_tuple">\n <tal:block repeat="bc business_configuration_tuple">\n
<tal:block define="bc_id python: bc.getId();\n <tal:block define="bc_id python: bc.getId();\n
bc_title python: bc.getTitle();\n bc_title python: bc.getTitle();\n
bc_description python: bc.getDescription();\n bc_description python: bc.getResourceValue().getDescription();\n
bc_absolute_url python: bc.absolute_url();\n bc_absolute_url python: bc.absolute_url();\n
bc_default_image python: bc.getDefaultImageValue();\n bc_default_image python: bc.getResourceValue().getDefaultImageValue();\n
bc_default_image_absolute_url python: bc.getDefaultImageAbsoluteUrl();">\n bc_default_image_absolute_url python: bc.getResourceValue().getDefaultImageAbsoluteUrl();">\n
<td>\n <td>\n
<div tal:attributes="id python: \'business_configuration_%s\' % bc_id;\n <div tal:attributes="id python: \'business_configuration_%s\' % bc_id;\n
class string:box;">\n class string:box;">\n
......
535 536
\ No newline at end of file \ No newline at end of file
...@@ -26,4 +26,6 @@ Solver Configurator Item | view ...@@ -26,4 +26,6 @@ Solver Configurator Item | view
Standard BT5 Configurator Item | view Standard BT5 Configurator Item | view
System Preference Configurator Item | view System Preference Configurator Item | view
Workflow Security Configurator Item | view Workflow Security Configurator Item | view
Workflow | configurator_settings
Workflow | launch_configuration
portal_actions | use_configurator portal_actions | use_configurator
\ No newline at end of file
...@@ -36,4 +36,5 @@ Person Configurator Item | Address ...@@ -36,4 +36,5 @@ Person Configurator Item | Address
Person Configurator Item | Career Person Configurator Item | Career
Person Configurator Item | Email Person Configurator Item | Email
Person Configurator Item | Telephone Person Configurator Item | Telephone
Portal Type Roles Spreadsheet Configurator Item | Embedded File Portal Type Roles Spreadsheet Configurator Item | Embedded File
\ No newline at end of file Workflow | Embedded File
\ No newline at end of file
...@@ -7,4 +7,5 @@ Organisation Configurator Item | Telephone ...@@ -7,4 +7,5 @@ Organisation Configurator Item | Telephone
Person Configurator Item | Address Person Configurator Item | Address
Person Configurator Item | Career Person Configurator Item | Career
Person Configurator Item | Email Person Configurator Item | Email
Person Configurator Item | Telephone Person Configurator Item | Telephone
\ No newline at end of file Workflow | Embedded File
\ No newline at end of file
Workflow | DefaultImage
\ No newline at end of file
...@@ -26,6 +26,16 @@ ...@@ -26,6 +26,16 @@
<value> <string>string</string> </value> <value> <string>string</string> </value>
</item> </item>
</dictionary> </dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>comment</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -50,9 +60,17 @@ ...@@ -50,9 +60,17 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>comment</string> </key>
<value> <string>The default RunMyDoc configuration workflow.</string> </value> <value> <string>The default RunMyDoc configuration workflow.</string> </value>
</item> </item>
<item>
<key> <string>configuration_after_script_id</string> </key>
<value> <string>BusinessConfiguration_afterRunMyDocConfiguration</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>RunMyDoc doubles the productivity of documentation by making marketers and developers collaborate automatically.</string> </value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>run_my_doc_configuration_workflow</string> </value> <value> <string>run_my_doc_configuration_workflow</string> </value>
......
...@@ -36,6 +36,14 @@ ...@@ -36,6 +36,14 @@
<key> <string>content_type</string> </key> <key> <string>content_type</string> </key>
<value> <string>image/png</string> </value> <value> <string>image/png</string> </value>
</item> </item>
<item>
<key> <string>creators</string> </key>
<value>
<tuple>
<string>zope</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>data</string> </key> <key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAMgAAACWCAIAAAAUvlBOAAAAAXNSR0IArs4c6QAAAAlwSFlzAAAL <value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAMgAAACWCAIAAAAUvlBOAAAAAXNSR0IArs4c6QAAAAlwSFlzAAAL
...@@ -309,6 +317,25 @@ LUMAAAAASUVORK5CYII=</string> </value> ...@@ -309,6 +317,25 @@ LUMAAAAASUVORK5CYII=</string> </value>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>default_image</string> </value> <value> <string>default_image</string> </value>
</item> </item>
<item>
<key> <string>modification_date</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1324670339.19</float>
<string>GMT-2</string>
</tuple>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Embedded File</string> </value> <value> <string>Embedded File</string> </value>
......
5 6
\ No newline at end of file \ No newline at end of file
business_configuration_module/run_my_doc_configuration business_configuration_module/run_my_doc_configuration
business_configuration_module/run_my_doc_configuration/default_image
workflow_module/run_my_doc_configuration_workflow workflow_module/run_my_doc_configuration_workflow
workflow_module/run_my_doc_configuration_workflow/** workflow_module/run_my_doc_configuration_workflow/**
\ No newline at end of file
...@@ -26,6 +26,16 @@ ...@@ -26,6 +26,16 @@
<value> <string>string</string> </value> <value> <string>string</string> </value>
</item> </item>
</dictionary> </dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>comment</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -50,9 +60,17 @@ ...@@ -50,9 +60,17 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>comment</string> </key>
<value> <string>The default Configuration with configurable categories and security.</string> </value> <value> <string>The default Configuration with configurable categories and security.</string> </value>
</item> </item>
<item>
<key> <string>configuration_after_script_id</string> </key>
<value> <string>BusinessConfiguration_afterConfiguration</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Used by consultants to provides a flexible configuration of ERP5 for Small and Medium Business.</string> </value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>erp5_consulting_workflow</string> </value> <value> <string>erp5_consulting_workflow</string> </value>
......
...@@ -49,9 +49,13 @@ ...@@ -49,9 +49,13 @@
</tuple> </tuple>
</value> </value>
</item> </item>
<item>
<key> <string>configuration_after_script_id</string> </key>
<value> <string>BusinessConfiguration_afterConfiguration</string> </value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>The default ERP5 configuration workflow.</string> </value> <value> <string>Standard Configuratation provides a generic configuration of ERP5 for Small and Medium Business.</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
business_configuration_module/default_consulting_standard_configuration business_configuration_module/default_consulting_standard_configuration
business_configuration_module/default_consulting_standard_configuration/default_image
business_configuration_module/default_standard_configuration business_configuration_module/default_standard_configuration
business_configuration_module/default_standard_configuration/default_image
portal_categories/configurator_function/** portal_categories/configurator_function/**
portal_categories/configurator_region/** portal_categories/configurator_region/**
workflow_module/erp5_consulting_workflow workflow_module/erp5_consulting_workflow
......
...@@ -26,6 +26,16 @@ ...@@ -26,6 +26,16 @@
<value> <string>string</string> </value> <value> <string>string</string> </value>
</item> </item>
</dictionary> </dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>comment</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -50,9 +60,17 @@ ...@@ -50,9 +60,17 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>comment</string> </key>
<value> <string>The default UNG configuration workflow.</string> </value> <value> <string>The default UNG configuration workflow.</string> </value>
</item> </item>
<item>
<key> <string>configuration_after_script_id</string> </key>
<value> <string>BusinessConfiguration_afterUNGConfiguration</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>The UNG project aims at building a complete alternative to proprietary business model and technologies, starting from enterprise application and ending with Internet search engine.</string> </value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>ung_configuration_workflow</string> </value> <value> <string>ung_configuration_workflow</string> </value>
......
55 56
\ No newline at end of file \ No newline at end of file
business_configuration_module/ung_configuration business_configuration_module/ung_configuration
business_configuration_module/ung_configuration/default_image
workflow_module/ung_configuration_workflow workflow_module/ung_configuration_workflow
workflow_module/ung_configuration_workflow/** workflow_module/ung_configuration_workflow/**
\ No newline at end of file
...@@ -67,8 +67,6 @@ class BusinessConfiguration(Item): ...@@ -67,8 +67,6 @@ class BusinessConfiguration(Item):
, PropertySheet.Arrow , PropertySheet.Arrow
, PropertySheet.BusinessConfiguration , PropertySheet.BusinessConfiguration
, PropertySheet.Comment , PropertySheet.Comment
, PropertySheet.Version
, PropertySheet.DefaultImage
) )
security.declareProtected(Permissions.View, 'isInitialConfigurationState') security.declareProtected(Permissions.View, 'isInitialConfigurationState')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment