Commit f4dec179 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

erp5_configurator_run_my_doc: deploy configuration and remove old workflow.

parent db8c9af5
......@@ -108,6 +108,7 @@
<value>
<tuple>
<string>resource/portal_workflow/workflow_run_my_doc_configuration_workflow</string>
<string>resource/portal_workflow/run_my_doc_configuration_workflow</string>
</tuple>
</value>
</item>
......
......@@ -85,6 +85,10 @@
<key> <string>portal_type</string> </key>
<value> <string>Workflow</string> </value>
</item>
<item>
<key> <string>ref</string> </key>
<value> <string>run_my_doc_configuration_workflow</string> </value>
</item>
<item>
<key> <string>state_base_category</string> </key>
<value> <string>current_state</string> </value>
......
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<global name="ERP5 Form" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<global name="ERP5 Form" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<global name="ERP5 Form" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<global name="ERP5 Form" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<global name="ERP5 Form" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -162,26 +162,26 @@ class TestRunMyDocsConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
sequence.edit(next_dict=next_dict)
def stepCheckMultipleUserAccountThreeBrazil(self, sequence=None, sequence_list=None, **kw):
""" Check if the users were created correctly """
business_configuration = sequence.get("business_configuration")
person_config_save = business_configuration["5"]
person_config_item = person_config_save["1"]
self.assertEqual(person_config_item.getReference(), "person_creator")
person_config_item = person_config_save["2"]
self.assertEqual(person_config_item.getReference(), "person_assignee")
person_config_item = person_config_save["3"]
self.assertEqual(person_config_item.getReference(), "person_assignor")
""" Check if the users were created correctly """
business_configuration = sequence.get("business_configuration")
person_config_save = business_configuration["5"]
person_config_item = person_config_save["1"]
self.assertEqual(person_config_item.getReference(), "person_creator")
person_config_item = person_config_save["2"]
self.assertEqual(person_config_item.getReference(), "person_assignee")
person_config_item = person_config_save["3"]
self.assertEqual(person_config_item.getReference(), "person_assignor")
def stepCheckMultipleUserAccountThreeFrance(self, sequence=None, sequence_list=None, **kw):
""" Check if the users were created correctly """
business_configuration = sequence.get("business_configuration")
person_config_save = business_configuration["5"]
person_config_item = person_config_save["1"]
self.assertEqual(person_config_item.getReference(), "french_creator")
person_config_item = person_config_save["2"]
self.assertEqual(person_config_item.getReference(), "french_assignee")
person_config_item = person_config_save["3"]
self.assertEqual(person_config_item.getReference(), "french_assignor")
""" Check if the users were created correctly """
business_configuration = sequence.get("business_configuration")
person_config_save = business_configuration["5"]
person_config_item = person_config_save["1"]
self.assertEqual(person_config_item.getReference(), "french_creator")
person_config_item = person_config_save["2"]
self.assertEqual(person_config_item.getReference(), "french_assignee")
person_config_item = person_config_save["3"]
self.assertEqual(person_config_item.getReference(), "french_assignor")
def stepCheckSystemPreferenceAfterInstallation(self, sequence=None, sequence_list=None, **kw):
""" Check System Preference"""
......
......@@ -45,26 +45,7 @@
<item>
<key> <string>text_content_warning_message</string> </key>
<value>
<tuple>
<string>W:165, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:166, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:167, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:168, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:169, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:170, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:171, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:172, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:173, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:176, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:177, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:178, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:179, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:180, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:181, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:182, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:183, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:184, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Workflow" module="erp5.portal_type"/>
<global name="Configuration Workflow" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......@@ -26,6 +26,16 @@
<value> <string>string</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>state_base_category</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>lines</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
......@@ -45,7 +55,7 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>source/portal_workflow/workflow_run_my_doc_configuration_workflow/state_start</string>
<string>source/portal_workflow/run_my_doc_configuration_workflow/1</string>
</tuple>
</value>
</item>
......@@ -57,36 +67,21 @@
<key> <string>configuration_after_script_id</string> </key>
<value> <string>BusinessConfiguration_afterRunMyDocConfiguration</string> </value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>run_my_doc_configuration_workflow</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>
<key> <string>id</string> </key>
<value> <string>workflow_run_my_doc_configuration_workflow</string> </value>
</item>
<item>
<key> <string>managed_permission_list</string> </key>
<value>
<tuple>
<string>Access contents information</string>
<string>Add portal content</string>
<string>Modify portal content</string>
<string>View</string>
</tuple>
</value>
<value> <string>run_my_doc_configuration_workflow</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Workflow</string> </value>
<value> <string>Configuration Workflow</string> </value>
</item>
<item>
<key> <string>state_variable</string> </key>
<value> <string>validation_state</string> </value>
<key> <string>state_base_category</string> </key>
<value> <string>current_state</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="State" module="erp5.portal_type"/>
<global name="Configuration State" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......@@ -10,14 +10,10 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/transition_setup_standard_bt5</string>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/15</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>start</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
......@@ -26,11 +22,11 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>state_start</string> </value>
<value> <string>1</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>State</string> </value>
<value> <string>Configuration State</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Configuration Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple>
<string>BusinessConfiguration_setupRunMyDocList</string>
</tuple>
</value>
</item>
<item>
<key> <string>before_script_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/9</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>10</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Configuration Transition</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Configure user accounts</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Configuration Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/2</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>11</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Configuration Transition</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Install</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Configuration Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple>
<string>BusinessConfiguration_setupCustomerBT5</string>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/3</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>12</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Configuration Transition</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Setup customer BT5</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Configuration Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple>
<string>BusinessConfiguration_setupRunMyDocPreferences</string>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/4</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>13</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Configuration Transition</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Configure ERP5 Preferences</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Configuration Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple>
<string>BusinessConfiguration_setupRunMyDocOrganisation</string>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/8</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>14</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Configuration Transition</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Configure Organisation</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Configuration Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple>
<string>BusinessConfiguration_setupRunMyDocStandardBT5</string>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/5</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>15</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Configuration Transition</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Setup standard BT5</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Configuration Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple>
<string>BusinessConfiguration_setupRunMyDocUserNumber</string>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/6</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>16</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Configuration Transition</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Configure user accounts number</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Configuration Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/7</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>17</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Configuration Transition</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Finalize</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="State" module="erp5.portal_type"/>
<global name="Configuration State" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......@@ -10,25 +10,23 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/transition_finalize</string>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/17</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>download</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Installation procedure may begin.</string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>state_download</string> </value>
<value> <string>2</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>State</string> </value>
<value> <string>Configuration State</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="State" module="erp5.portal_type"/>
<global name="Configuration State" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......@@ -10,14 +10,10 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/transition_configure_organisation</string>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/14</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>customer_bt</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
......@@ -26,11 +22,11 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>state_customer_bt</string> </value>
<value> <string>3</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>State</string> </value>
<value> <string>Configuration State</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="State" module="erp5.portal_type"/>
<global name="Configuration State" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......@@ -10,29 +10,25 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/transition_install</string>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/11</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>run_my_doc_preferences</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Define some global preferences for RunMyDoc.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>state_run_my_doc_preferences</string> </value>
<value> <string>4</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>State</string> </value>
<value> <string>Configuration State</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Run my Doc Preferences</string> </value>
<value> <string>RunMyDoc Preferences</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="State" module="erp5.portal_type"/>
<global name="Configuration State" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......@@ -10,14 +10,10 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/transition_setup_customer_bt5</string>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/12</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>standard_bt5</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
......@@ -26,11 +22,11 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>state_standard_bt5</string> </value>
<value> <string>5</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>State</string> </value>
<value> <string>Configuration State</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Configuration State" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/10</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Enter the number of user accounts you want to create.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>6</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Configuration State</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Number of user accounts</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -2,14 +2,10 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="State" module="erp5.portal_type"/>
<global name="Configuration State" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>default_reference</string> </key>
<value> <string>end</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
......@@ -18,11 +14,11 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>state_end</string> </value>
<value> <string>7</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>State</string> </value>
<value> <string>Configuration State</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="State" module="erp5.portal_type"/>
<global name="Configuration State" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......@@ -10,29 +10,25 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/transition_configure_user_accounts_number</string>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/16</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>your_organisation</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Configure your organisation.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>state_your_organisation</string> </value>
<value> <string>8</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>State</string> </value>
<value> <string>Configuration State</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Your Organisation</string> </value>
<value> <string>Your organisation</string> </value>
</item>
</dictionary>
</pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Configuration State" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/run_my_doc_configuration_workflow/13</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Enter the data of each user.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>9</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Configuration State</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>User accounts configuration</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Workflow Script" module="erp5.portal_type"/>
</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>""" This script will be called to apply the customization. """\n
from AccessControl import getSecurityManager\n
\n
portal = context.getPortalObject()\n
portal_preferences = portal.portal_preferences\n
business_template = context.getSpecialiseValue()\n
isTransitionPossible = portal.portal_workflow.isTransitionPossible\n
\n
# enable runmydoc preference\n
runmydoc_preference = getattr(portal.portal_preferences, \'runmydoc_preference\', None)\n
if runmydoc_preference is not None and isTransitionPossible(runmydoc_preference, \'enable\'):\n
runmydoc_preference.enable()\n
\n
# Access Front Tab enabled for everyone\n
for preference in context.portal_catalog(portal_type = \'Preference\'):\n
preference.setPreferredHtmlStyleAccessTab(1)\n
\n
"""\n
# publish the runmydoc web site\n
runmydoc_web_site = getattr(portal.web_site_module, \'runmydoc\', None)\n
if runmydoc_web_site is not None and isTransitionPossible(runmydoc_web_site, \'publish\', None):\n
runmydoc_web_site.publish()\n
"""\n
\n
language = context.getGlobalConfigurationAttr("default_available_language")\n
\n
"""\n
runmydoc_web_site.setDefaultAvailableLanguage(language)\n
for web_section in runmydoc_web_site.contentValues(portal_types=\'Web Section\'):\n
if isTransitionPossible(web_section, \'publish\', None):\n
web_section.publish()\n
\n
bt5 = portal.portal_catalog.getResultValue(portal_type="Business Template",\n
title="erp5_web_runmydoc_role")\n
\n
if bt5 is not None:\n
for portal_type in bt5.getTemplatePortalTypeRolesList():\n
module_list = portal.contentValues(filter=dict(portal_type=portal_type))\n
portal_type_object = portal.portal_catalog.getResultValue(portal_type="Base Type",\n
id=portal_type)\n
portal_type_object.updateRoleMapping()\n
context.log("Updated Role Mappings for: %s " % (portal_type_object.getId()))\n
for module in module_list:\n
module.updateLocalRolesOnSecurityGroups()\n
context.log("Updated Role Mappings for: %s(%s) " % (module.getTitle(), module.getPortalType()))\n
"""\n
if business_template is not None:\n
# update path items. FIXME: local roles should be exported by business template instead\n
for path in business_template.getTemplatePathList():\n
obj = portal.restrictedTraverse(path, None)\n
# no need to update security on categories\n
if obj is not None and obj.getPortalType() not in (\'Category\', \'Base Category\',):\n
obj.updateLocalRolesOnSecurityGroups()\n
context.log("Updated Role Mappings for: ", path, obj.getPortalType())\n
\n
# validate and open all objects\n
for path in business_template.getTemplatePathList():\n
obj = context.getPortalObject().restrictedTraverse(path, None)\n
if obj is not None and hasattr(obj, \'getPortalType\'):\n
# XXX This hardcoded list is a bit inconvinient.\n
if obj.getPortalType() in (\'Person\', \n
\'Organisation\'):\n
if isTransitionPossible(obj, \'validate\'):\n
obj.validate()\n
context.log("Validated: ", obj.getRelativeUrl())\n
\n
for assignment in obj.contentValues(filter={\'portal_type\':\'Assignment\'}):\n
if isTransitionPossible(assignment, \'open\'):\n
assignment.open()\n
assignment.updateLocalRolesOnSecurityGroups()\n
context.log("\\tOpen (assignment): ", assignment.getRelativeUrl())\n
\n
for gadget in context.portal_gadgets.objectValues():\n
if gadget.getValidationState() == \'invisible\':\n
gadget.visible()\n
gadget.public()\n
\n
# Add a tab and a gadget for everyone\n
from Products.ERP5Security.ERP5UserManager import getUserByLogin\n
portal = context.getPortalObject()\n
for person in context.person_module.objectValues():\n
user_name = person.getReference()\n
tag = \'%s_%s_%s\' %(user_name,\n
\'erp5_front\',\n
None)\n
activate_kw = {\'tag\': tag}\n
\n
knowledge_pad = context.knowledge_pad_module.newContent(\n
portal_type = \'Knowledge Pad\',\n
title = context.Base_translateString(\'Tab\'),\n
activate_kw = activate_kw)\n
\n
knowledge_pad.visible()\n
current_user = context.portal_membership.getAuthenticatedMember()\n
knowledge_pad.manage_setLocalRoles(userid=user_name, roles=[\'Owner\'])\n
knowledge_pad.manage_delLocalRoles([str(current_user)])\n
knowledge_pad.reindexObject()\n
\n
knowledge_box = knowledge_pad.newContent(portal_type=\'Knowledge Box\',\n
specialise=\'portal_gadgets/test_wizard_gadget\',\n
activate_kw=activate_kw\n
)\n
knowledge_box.visible()\n
knowledge_box.reindexObject()\n
\n
# XXX - check if is possible add this configuration in bt5\n
portal.knowledge_pad_module.manage_permission(\'Add portal content\',\n
roles=[\'Assignor\', "Manager", "Authenticated", "Author"],\n
acquire=0)\n
context.log("Indexing translations")\n
portal.ERP5Site_updateTranslationTable()\n
\n
# clear cache so user security is recalculated\n
portal.portal_caches.clearAllCache()\n
context.log("Clear cache.")\n
\n
context.log("Reindexing objects and updating roles.")\n
context.BusinessConfiguration_reindexRunMyDocObjectsAndRoles()\n
context.log("Objects reindex and roles updates.")\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>alter_preferences=True</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>BusinessConfiguration_afterRunMyDocConfiguration</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Workflow Script</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>After RunMyDoc Configuration</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Workflow Script" module="erp5.portal_type"/>
</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>configuration_save = context.restrictedTraverse(configuration_save_url)\n
configuration_save.addConfigurationItem("Customer BT5 Configurator Item", \n
bt5_title=\'_\'.join(context.getTitle().strip().lower().split()))\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>configuration_save_url=None, **kw</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Create a bt5 template that will contain customer configuration.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>BusinessConfiguration_setupCustomerBT5</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Workflow Script</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Setup Customer BT5</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Workflow Script" module="erp5.portal_type"/>
</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>configuration_save_url = kw.get(\'configuration_save_url\', None)\n
configuration_save = context.restrictedTraverse(configuration_save_url)\n
\n
user_number = context.getGlobalConfigurationAttr(\'user_number\')\n
\n
## get only form keys\n
form_keys = [i for i in kw.keys() if i.startswith(\'field_your_\') and i!=\'field_your_search_text\']\n
\n
\n
function = "function/runmydocs_user/assignor"\n
if user_number == 1:\n
# only one user\n
for key in (\'configuration_save_url\', \'transition\', \'client_id\', \'password_confirm\'):\n
kw.pop(key, None)\n
configuration_save.addConfigurationItem("Person Configurator Item",\n
function=function,\n
**kw)\n
else:\n
# many users\n
for counter in range(user_number):\n
user_kw = {}\n
for key in form_keys:\n
new_key = key.replace("field_your_", "")\n
value = kw.get(key)\n
if value:\n
user_kw[new_key] = value[counter]\n
# add an user\n
user_kw.pop(\'password_confirm\', None)\n
configuration_save.addConfigurationItem("Person Configurator Item",\n
function=function,\n
**user_kw)\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>BusinessConfiguration_setupRunMyDocList</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Workflow Script</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Setup web site users</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Workflow Script" module="erp5.portal_type"/>
</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>configuration_save = context.restrictedTraverse(configuration_save_url)\n
\n
organisation_configurator_item = configuration_save.addConfigurationItem(\n
"Organisation Configurator Item",\n
**kw)\n
\n
context.setGlobalConfigurationAttr(company_email=kw.get(\'default_email_text\'))\n
\n
# store globally company\'s configurator item which we can use later to reconfigure\n
context.setGlobalConfigurationAttr(\n
organisation_configurator_item=\n
organisation_configurator_item.getRelativeUrl())\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>configuration_save_url=None, **kw</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>BusinessConfiguration_setupRunMyDocOrganisation</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Workflow Script</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Setup Run My Document Organisation</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Workflow Script" module="erp5.portal_type"/>
</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 encoding="cdata"><![CDATA[
portal = context.getPortalObject()\n
configuration_save_url = kw.get(\'configuration_save_url\', None)\n
preferred_event_sender_email = kw.get(\'preferred_event_sender_email\', \'\')\n
preferred_date_order = kw.get(\'preferred_date_order\', None)\n
default_available_language = kw.get(\'default_available_language\', \'en\')\n
\n
context.setGlobalConfigurationAttr(default_available_language=default_available_language)\n
\n
configuration_save = context.restrictedTraverse(configuration_save_url)\n
business_configuration = configuration_save.getParent()\n
\n
# if preferred email is not specified used previously saved company email.\n
company_email = context.getGlobalConfigurationAttr(\'company_email\')\n
if preferred_event_sender_email in (\'\', None,):\n
preferred_event_sender_email = company_email\n
\n
# configure preferences\n
prefs = dict(\n
preferred_category_child_item_list_method_id = \'getCategoryChildTranslatedLogicalPathItemList\',\n
preferred_text_format = \'text/html\',\n
preferred_text_editor = \'fck_editor\',\n
preferred_date_order = preferred_date_order,\n
preferred_listbox_view_mode_line_count = 20,\n
preferred_listbox_list_mode_line_count = 20,\n
preferred_string_field_width = 30,\n
preferred_textarea_width = 80,\n
preferred_textarea_height = 5,\n
preferred_report_style = \'ODT\',\n
preferred_report_format = \'pdf\',\n
preferred_money_quantity_field_width = 10,\n
preferred_html_style_access_tab = 1,\n
preferred_quantity_field_width = 8)\n
\n
configuration_save.addConfigurationItem(\n
\'Preference Configurator Item\',\n
object_id = \'default_configurator_preference\',\n
description = "The default parameters for the site are set on this "\n
"preference",\n
title = "Default Configurator Site Preference",\n
**prefs)\n
\n
# configure system preferences\n
# some preparation\n
system_prefs = dict(\n
preferred_event_sender_email = preferred_event_sender_email,\n
preferred_event_assessment_form_id_list = [],\n
preferred_document_file_name_regular_expression = \\\n
\'(?P<node_reference>[a-zA-Z0-9_-]+)-(?P<local_reference>[a-zA-Z0-9_.]+)\'\n
\'-(?P<version>[0-9a-zA-Z.]+)-(?P<language>[a-z]{2})[^-]*?\',\n
preferred_document_reference_regular_expression = \'(?P<reference>[a-zA-Z0-9\'\n
\'-_.]+-[a-zA-Z0-9-_.]+)(|-(?P<version>[0-9a-zA-Z.]+))(|-(?P<language>[a\'\n
\'-z]{2})[^-]*)?\',\n
preferred_synchronous_metadata_discovery = True,\n
preferred_redirect_to_document = True)\n
\n
configuration_save.addConfigurationItem(\'System Preference Configurator Item\',\n
object_id = \'default_configurator_system_preference\',\n
description="The default system parameters for the site are set on this \'\\\n
\'preference",\n
title="Default Configurator System Site Preference",\n
**system_prefs)\n
\n
if default_available_language and default_available_language != "en":\n
language_dict = context.BusinessConfiguration_getRunMyDocAvailableL10NBusinessTemplateList()\n
bt5 = language_dict.get(default_available_language)\n
if bt5:\n
configuration_save.addConfigurationItem("Standard BT5 Configurator Item",\n
bt5_id=bt5.get("bt5"))\n
]]></string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>BusinessConfiguration_setupRunMyDocPreferences</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Workflow Script</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Configure global ERP5 preferences</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Workflow Script" module="erp5.portal_type"/>
</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>configuration_save = context.restrictedTraverse(configuration_save_url)\n
\n
bt5_installation_list = (\'erp5_jquery\',\n
\'erp5_web\',\n
\'erp5_ingestion_mysql_innodb_catalog\',\n
\'erp5_ingestion\',\n
\'erp5_ui_test_core\',\n
\'erp5_dms\',\n
\'erp5_jquery_ui\',\n
\'erp5_slideshow_style\',\n
\'erp5_knowledge_pad\',\n
\'erp5_run_my_doc\',\n
\'erp5_run_my_doc_role\')\n
\n
bt5_update_catalog = (\'erp5_ingestion_mysql_innodb_catalog\')\n
\n
for name in bt5_installation_list:\n
configuration_save.addConfigurationItem("Standard BT5 Configurator Item",\n
title=name, bt5_id=name,\n
update_catalog=(name in bt5_update_catalog)\n
)\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>configuration_save_url=None, **kw</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>BusinessConfiguration_setupRunMyDocStandardBT5</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Workflow Script</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Setup standard ERP5 business templates</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Workflow Script" module="erp5.portal_type"/>
</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 encoding="cdata"><![CDATA[
configuration_save_url = kw.get(\'configuration_save_url\', None)\n
user_number = kw.get(\'user_number\', 1)\n
next_transition = context.getNextTransition().getRelativeUrl()\n
\n
if user_number > 1:\n
# mark next transition as multiple\n
context.setMultiEntryTransition(next_transition, user_number)\n
else:\n
# explicitly reset next transition as not multiple because \n
# we may have already set it as multiple\n
context.setMultiEntryTransition(next_transition, 0)\n
\n
# store globally\n
context.setGlobalConfigurationAttr(user_number=user_number)\n
]]></string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>BusinessConfiguration_setupRunMyDocUserNumber</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Workflow Script</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Setup number of users</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="State" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/transition_configure_user_accounts</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>number_of_user_accounts</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Enter the number of user accounts you want to create. In your company, each person using ERP5 should have his own user account.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>state_number_of_user_accounts</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>State</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Number of User Accounts</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="State" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/transition_configure_erp5_preferences</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>user_accounts_configuration</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Fill in detailled information for each ERP5 user. At end of configuration process each TioLive user will receive an email containing his username and password.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>state_user_accounts_configuration</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>State</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>User Accounts Configuration</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_icon</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple>
<string>BusinessConfiguration_setupRunMyDocPreferences</string>
</tuple>
</value>
</item>
<item>
<key> <string>before_script_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/state_run_my_doc_preferences</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>configure_erp5_preferences</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>guard_expression</string> </key>
<value> <string>python: True</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>transition_configure_erp5_preferences</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Transition</string> </value>
</item>
<item>
<key> <string>role</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Configure ERP5 Preferences</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_icon</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple>
<string>BusinessConfiguration_setupRunMyDocOrganisation</string>
</tuple>
</value>
</item>
<item>
<key> <string>before_script_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/state_your_organisation</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>configure_organisation</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>guard_expression</string> </key>
<value> <string>python: True</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>transition_configure_organisation</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Transition</string> </value>
</item>
<item>
<key> <string>role</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Configure Organisation</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_icon</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple>
<string>BusinessConfiguration_setupRunMyDocList</string>
</tuple>
</value>
</item>
<item>
<key> <string>before_script_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/state_user_accounts_configuration</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>configure_user_accounts</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>guard_expression</string> </key>
<value> <string>python: True</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>transition_configure_user_accounts</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Transition</string> </value>
</item>
<item>
<key> <string>role</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Configure User Accounts</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_icon</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple>
<string>BusinessConfiguration_setupRunMyDocUserNumber</string>
</tuple>
</value>
</item>
<item>
<key> <string>before_script_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/state_number_of_user_accounts</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>configure_user_accounts_number</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>guard_expression</string> </key>
<value> <string>python: True</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>transition_configure_user_accounts_number</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Transition</string> </value>
</item>
<item>
<key> <string>role</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Configure User Accounts Number</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_icon</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>before_script_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/state_end</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>finalize</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>guard_expression</string> </key>
<value> <string>python: True</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>transition_finalize</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Transition</string> </value>
</item>
<item>
<key> <string>role</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Finalize</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_icon</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>before_script_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/state_download</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>install</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>guard_expression</string> </key>
<value> <string>python: True</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>transition_install</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Transition</string> </value>
</item>
<item>
<key> <string>role</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Install</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_icon</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple>
<string>BusinessConfiguration_setupCustomerBT5</string>
</tuple>
</value>
</item>
<item>
<key> <string>before_script_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/state_customer_bt</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>setup_customer_bt5</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>guard_expression</string> </key>
<value> <string>python: True</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>transition_setup_customer_bt5</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Transition</string> </value>
</item>
<item>
<key> <string>role</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Setup Customer BT5</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_icon</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>after_script_id</string> </key>
<value>
<tuple>
<string>BusinessConfiguration_setupRunMyDocStandardBT5</string>
</tuple>
</value>
</item>
<item>
<key> <string>before_script_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/workflow_run_my_doc_configuration_workflow/state_standard_bt5</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>setup_standard_bt5</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>guard_expression</string> </key>
<value> <string>python: True</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>transition_setup_standard_bt5</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Transition</string> </value>
</item>
<item>
<key> <string>role</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Setup Standard BT5</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
workflow_run_my_doc_configuration_workflow
\ No newline at end of file
run_my_doc_configuration_workflow
\ No newline at end of file
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