Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin-telecom
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paul Graydon
wendelin-telecom
Commits
7eeb1099
Commit
7eeb1099
authored
Apr 04, 2023
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ors_configurator: configurator
parent
f4b28f5e
Changes
39
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
2110 additions
and
0 deletions
+2110
-0
bt5/ors_configurator/PathTemplateItem/business_configuration_module/ors_configuration.xml
...eItem/business_configuration_module/ors_configuration.xml
+232
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow.xml
...gurator/PathTemplateItem/portal_workflow/ors_workflow.xml
+100
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/default_image.xml
...mplateItem/portal_workflow/ors_workflow/default_image.xml
+316
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/state_customer_bt.xml
...teItem/portal_workflow/ors_workflow/state_customer_bt.xml
+44
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/state_download.xml
...plateItem/portal_workflow/ors_workflow/state_download.xml
+44
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/state_draft.xml
...TemplateItem/portal_workflow/ors_workflow/state_draft.xml
+24
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/state_end.xml
...thTemplateItem/portal_workflow/ors_workflow/state_end.xml
+42
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/state_standard_bt5.xml
...eItem/portal_workflow/ors_workflow/state_standard_bt5.xml
+44
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/state_start.xml
...TemplateItem/portal_workflow/ors_workflow/state_start.xml
+44
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/transition_finalize.xml
...Item/portal_workflow/ors_workflow/transition_finalize.xml
+63
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/transition_install.xml
...eItem/portal_workflow/ors_workflow/transition_install.xml
+69
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/transition_setup.xml
...ateItem/portal_workflow/ors_workflow/transition_setup.xml
+75
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/transition_setup_customer_bt5.xml
...l_workflow/ors_workflow/transition_setup_customer_bt5.xml
+73
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/transition_setup_standard_bt5.xml
...l_workflow/ors_workflow/transition_setup_standard_bt5.xml
+77
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_action.xml
...lateItem/portal_workflow/ors_workflow/variable_action.xml
+32
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_actor.xml
...plateItem/portal_workflow/ors_workflow/variable_actor.xml
+32
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_client_id.xml
...eItem/portal_workflow/ors_workflow/variable_client_id.xml
+42
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_comment.xml
...ateItem/portal_workflow/ors_workflow/variable_comment.xml
+32
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_configuration_save_url.xml
...workflow/ors_workflow/variable_configuration_save_url.xml
+44
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_displayed.xml
...eItem/portal_workflow/ors_workflow/variable_displayed.xml
+44
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_error_message.xml
...m/portal_workflow/ors_workflow/variable_error_message.xml
+28
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_history.xml
...ateItem/portal_workflow/ors_workflow/variable_history.xml
+40
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_portal_type.xml
...tem/portal_workflow/ors_workflow/variable_portal_type.xml
+32
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_time.xml
...mplateItem/portal_workflow/ors_workflow/variable_time.xml
+32
-0
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_transition.xml
...Item/portal_workflow/ors_workflow/variable_transition.xml
+44
-0
bt5/ors_configurator/SkinTemplateItem/portal_skins/ors_configurator.xml
...urator/SkinTemplateItem/portal_skins/ors_configurator.xml
+26
-0
bt5/ors_configurator/SkinTemplateItem/portal_skins/ors_configurator/BusinessConfiguration_afterORSConfiguration.py
...nfigurator/BusinessConfiguration_afterORSConfiguration.py
+11
-0
bt5/ors_configurator/SkinTemplateItem/portal_skins/ors_configurator/BusinessConfiguration_afterORSConfiguration.xml
...figurator/BusinessConfiguration_afterORSConfiguration.xml
+62
-0
bt5/ors_configurator/SkinTemplateItem/portal_skins/ors_configurator/BusinessConfiguration_setupORSStandardBT5.py
...configurator/BusinessConfiguration_setupORSStandardBT5.py
+31
-0
bt5/ors_configurator/SkinTemplateItem/portal_skins/ors_configurator/BusinessConfiguration_setupORSStandardBT5.xml
...onfigurator/BusinessConfiguration_setupORSStandardBT5.xml
+66
-0
bt5/ors_configurator/TestTemplateItem/portal_components/test.erp5.testORSConfigurator.py
...teItem/portal_components/test.erp5.testORSConfigurator.py
+146
-0
bt5/ors_configurator/TestTemplateItem/portal_components/test.erp5.testORSConfigurator.xml
...eItem/portal_components/test.erp5.testORSConfigurator.xml
+110
-0
bt5/ors_configurator/bt/dependency_list
bt5/ors_configurator/bt/dependency_list
+1
-0
bt5/ors_configurator/bt/template_format_version
bt5/ors_configurator/bt/template_format_version
+1
-0
bt5/ors_configurator/bt/template_path_list
bt5/ors_configurator/bt/template_path_list
+3
-0
bt5/ors_configurator/bt/template_skin_id_list
bt5/ors_configurator/bt/template_skin_id_list
+1
-0
bt5/ors_configurator/bt/template_test_id_list
bt5/ors_configurator/bt/template_test_id_list
+1
-0
bt5/ors_configurator/bt/test_dependency_list
bt5/ors_configurator/bt/test_dependency_list
+1
-0
bt5/ors_configurator/bt/title
bt5/ors_configurator/bt/title
+1
-0
No files found.
bt5/ors_configurator/PathTemplateItem/business_configuration_module/ors_configuration.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Business Configuration"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Author
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Author
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Author
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Author
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
modification_date
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
date
</string>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
creation_date
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
date
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_server_buffer
</string>
</key>
<value>
<dictionary/>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
resource/portal_workflow/ors_workflow
</string>
<string>
current_state/portal_workflow/ors_workflow/state_start
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
configuration_after_script_id
</string>
</key>
<value>
<string>
BusinessConfiguration_afterUNGConfiguration
</string>
</value>
</item>
<item>
<key>
<string>
creation_date
</string>
</key>
<value>
<object>
<klass>
<global
id=
"1.1"
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
id=
"1.2"
name=
"DateTime"
module=
"DateTime.DateTime"
/>
<global
id=
"1.3"
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<tuple>
<float>
1302490800.0
</float>
<string>
GMT-3
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ors_configuration
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
modification_date
</string>
</key>
<value>
<object>
<klass>
<reference
id=
"1.1"
/>
</klass>
<tuple>
<reference
id=
"1.2"
/>
<reference
id=
"1.3"
/>
<none/>
</tuple>
<state>
<tuple>
<float>
1302577200.0
</float>
<string>
GMT-3
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Business Configuration
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
ORS Configuration
</string>
</value>
</item>
<item>
<key>
<string>
user_interface_description_file_id
</string>
</key>
<value>
<string>
ung_configuration_ui_description.ods
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
source/portal_workflow/ors_workflow/state_start
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
configuration_after_script_id
</string>
</key>
<value>
<string>
BusinessConfiguration_afterORSConfiguration
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ors_workflow
</string>
</value>
</item>
<item>
<key>
<string>
manager_bypass
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow
</string>
</value>
</item>
<item>
<key>
<string>
state_base_category
</string>
</key>
<value>
<string>
current_state
</string>
</value>
</item>
<item>
<key>
<string>
state_variable
</string>
</key>
<value>
<string>
current_state
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
ORS Workflow
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/default_image.xml
0 → 100644
View file @
7eeb1099
This diff is collapsed.
Click to expand it.
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/state_customer_bt.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow State"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
destination/portal_workflow/ors_workflow/transition_setup
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
state_customer_bt
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow State
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Customer BT
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/state_download.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow State"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
destination/portal_workflow/ors_workflow/transition_finalize
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
state_download
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow State
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Download
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/state_draft.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow State"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
state_draft
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow State
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Draft
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/state_end.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow State"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
state_end
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow State
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
End
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/state_standard_bt5.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow State"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
destination/portal_workflow/ors_workflow/transition_setup_customer_bt5
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
state_standard_bt5
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow State
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Standard BT5
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/state_start.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow State"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
destination/portal_workflow/ors_workflow/transition_setup_standard_bt5
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
state_start
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow State
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Start
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/transition_finalize.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Transition"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/workflow
</string>
<string>
destination/portal_workflow/ors_workflow/state_end
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</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>
guard_permission
</string>
</key>
<value>
<tuple>
<string>
Modify portal content
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
transition_finalize
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Transition
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Finalize
</string>
</value>
</item>
<item>
<key>
<string>
transition_form_id
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/transition_install.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Transition"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
after_script_id
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/workflow
</string>
<string>
destination/portal_workflow/ors_workflow/state_download
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</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>
guard_permission
</string>
</key>
<value>
<tuple>
<string>
Modify portal content
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
transition_install
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Transition
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Install
</string>
</value>
</item>
<item>
<key>
<string>
transition_form_id
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/transition_setup.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Transition"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
after_script_id
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/workflow
</string>
<string>
destination/portal_workflow/ors_workflow/state_download
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</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>
guard_permission
</string>
</key>
<value>
<tuple>
<string>
Modify portal content
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
transition_setup
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Transition
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Setup
</string>
</value>
</item>
<item>
<key>
<string>
transition_form_id
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/transition_setup_customer_bt5.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Transition"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
after_script_id
</string>
</key>
<value>
<string>
BusinessConfiguration_setupCustomerBT5
</string>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/workflow
</string>
<string>
destination/portal_workflow/ors_workflow/state_customer_bt
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</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>
guard_permission
</string>
</key>
<value>
<tuple>
<string>
Modify portal content
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<none/>
</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>
Workflow Transition
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Setup customer BT5
</string>
</value>
</item>
<item>
<key>
<string>
transition_form_id
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/transition_setup_standard_bt5.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Transition"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
after_script_id
</string>
</key>
<value>
<string>
BusinessConfiguration_setupORSStandardBT5
</string>
</value>
</item>
<item>
<key>
<string>
before_script_id
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/workflow
</string>
<string>
destination/portal_workflow/ors_workflow/state_standard_bt5
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string>
Setup all standard bt for ERP5
</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>
guard_permission
</string>
</key>
<value>
<tuple>
<string>
Modify portal content
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<none/>
</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>
Workflow Transition
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Setup standard BT5
</string>
</value>
</item>
<item>
<key>
<string>
transition_form_id
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_action.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Variable"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Transition id
</string>
</value>
</item>
<item>
<key>
<string>
for_catalog
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
variable_action
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Variable
</string>
</value>
</item>
<item>
<key>
<string>
variable_default_expression
</string>
</key>
<value>
<string>
transition/getReference|nothing
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_actor.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Variable"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Name of the user who performed transition
</string>
</value>
</item>
<item>
<key>
<string>
for_catalog
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
variable_actor
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Variable
</string>
</value>
</item>
<item>
<key>
<string>
variable_default_expression
</string>
</key>
<value>
<string>
user/getIdOrUserName
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_client_id.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Variable"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
automatic_update
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Id of client
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
variable_client_id
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Variable
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
client_id
</string>
</value>
</item>
<item>
<key>
<string>
variable_default_expression
</string>
</key>
<value>
<string>
python: request.get(\'client_id\', None)
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_comment.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Variable"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Comment about transition
</string>
</value>
</item>
<item>
<key>
<string>
for_catalog
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
variable_comment
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Variable
</string>
</value>
</item>
<item>
<key>
<string>
variable_default_expression
</string>
</key>
<value>
<string>
python:state_change.kwargs.get(\'comment\', \'\')
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_configuration_save_url.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Variable"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
automatic_update
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
variable_configuration_save_url
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Variable
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
configuration_save_url
</string>
</value>
</item>
<item>
<key>
<string>
variable_default_expression
</string>
</key>
<value>
<string>
python: request.get(\'configuration_save_url\', None)
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_displayed.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Variable"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
automatic_update
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
python: (object.transition is not None) and (object.transition.getTransitionFormId() not in [\'\', None])
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
variable_displayed
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Variable
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
displayed
</string>
</value>
</item>
<item>
<key>
<string>
variable_default_expression
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_error_message.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Variable"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Error message if validation failed
</string>
</value>
</item>
<item>
<key>
<string>
for_catalog
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
variable_error_message
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Variable
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_history.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Variable"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
automatic_update
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Provides access to workflow history
</string>
</value>
</item>
<item>
<key>
<string>
for_catalog
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
variable_history
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Variable
</string>
</value>
</item>
<item>
<key>
<string>
status_included
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
variable_default_expression
</string>
</key>
<value>
<string>
state_change/getHistory
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_portal_type.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Variable"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
automatic_update
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Portal type (used as filter for worklists)
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
variable_portal_type
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Variable
</string>
</value>
</item>
<item>
<key>
<string>
status_included
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_time.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Variable"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Transition timestamp
</string>
</value>
</item>
<item>
<key>
<string>
for_catalog
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
variable_time
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Variable
</string>
</value>
</item>
<item>
<key>
<string>
variable_default_expression
</string>
</key>
<value>
<string>
state_change/getDateTime
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/PathTemplateItem/portal_workflow/ors_workflow/variable_transition.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Variable"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
automatic_update
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
variable_transition
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Variable
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
transition
</string>
</value>
</item>
<item>
<key>
<string>
variable_default_expression
</string>
</key>
<value>
<string>
python: request.get(\'transition\', None)
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/SkinTemplateItem/portal_skins/ors_configurator.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Folder"
module=
"OFS.Folder"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ors_configurator
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/SkinTemplateItem/portal_skins/ors_configurator/BusinessConfiguration_afterORSConfiguration.py
0 → 100644
View file @
7eeb1099
portal
=
context
.
getPortalObject
()
default_site_preference
=
getattr
(
portal
.
portal_preferences
,
'default_site_preference'
,
None
)
if
default_site_preference
is
not
None
:
if
default_site_preference
.
getPreferenceState
()
==
"disabled"
:
default_site_preference
.
enable
()
default_system_preference
=
getattr
(
portal
.
portal_preferences
,
'default_system_preference'
,
None
)
if
default_system_preference
is
not
None
:
default_system_preference
.
setPreferredDataProductIndividualVariationBaseCategory
(
'variation'
)
if
default_system_preference
.
getPreferenceState
()
==
"disabled"
:
default_system_preference
.
enable
()
bt5/ors_configurator/SkinTemplateItem/portal_skins/ors_configurator/BusinessConfiguration_afterORSConfiguration.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</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>
_params
</string>
</key>
<value>
<string>
alter_preferences=True
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
BusinessConfiguration_afterORSConfiguration
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/SkinTemplateItem/portal_skins/ors_configurator/BusinessConfiguration_setupORSStandardBT5.py
0 → 100644
View file @
7eeb1099
configuration_save
=
context
.
restrictedTraverse
(
configuration_save_url
)
bt5_installation_list
=
(
'erp5_full_text_mroonga_catalog'
,
'erp5_base'
,
'erp5_jquery_ui'
,
'erp5_ingestion_mysql_innodb_catalog'
,
'erp5_ingestion'
,
'erp5_stock_cache'
,
'erp5_web'
,
'erp5_dms'
,
'erp5_pdm'
,
'erp5_trade'
,
'erp5_project'
,
'erp5_simulation'
,
'erp5_trade'
,
'erp5_code_mirror'
,
'erp5_forge'
,
'erp5_hal_json_style'
,
'erp5_web_renderjs_ui'
,
'erp5_wendelin'
,
'ors_wendelin'
)
bt5_update_catalog
=
(
'erp5_ingestion_mysql_innodb_catalog'
,
'erp5_wendelin'
,)
for
name
in
bt5_installation_list
:
configuration_save
.
addConfigurationItem
(
"Standard BT5 Configurator Item"
,
title
=
name
,
bt5_id
=
name
,
update_catalog
=
(
name
in
bt5_update_catalog
),
install_dependency
=
True
,
)
bt5/ors_configurator/SkinTemplateItem/portal_skins/ors_configurator/BusinessConfiguration_setupORSStandardBT5.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</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>
_params
</string>
</key>
<value>
<string>
configuration_save_url=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
BusinessConfiguration_setupORSStandardBT5
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Setup business templates
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/TestTemplateItem/portal_components/test.erp5.testORSConfigurator.py
0 → 100644
View file @
7eeb1099
##############################################################################
#
# Copyright (c) 2002-2022 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
##############################################################################
from
Products.ERP5Type.tests.SecurityTestCase
import
SecurityTestCase
import
random
import
transaction
from
Products.ERP5Type.tests.utils
import
DummyMailHost
from
Products.ERP5Type.Utils
import
convertToUpperCase
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
setSecurityManager
class
TestORSConfigurator
(
SecurityTestCase
):
abort_transaction
=
0
def
clearCache
(
self
):
self
.
portal
.
portal_caches
.
clearAllCache
()
self
.
portal
.
portal_workflow
.
refreshWorklistCache
()
def
createAlarmStep
(
self
):
def
makeCallAlarm
(
alarm
):
def
callAlarm
(
*
args
,
**
kwargs
):
sm
=
getSecurityManager
()
self
.
login
()
try
:
alarm
.
activeSense
(
params
=
kwargs
)
self
.
commit
()
finally
:
setSecurityManager
(
sm
)
return
callAlarm
for
alarm
in
self
.
portal
.
portal_alarms
.
contentValues
():
if
alarm
.
isEnabled
():
setattr
(
self
,
'stepCall'
+
convertToUpperCase
(
alarm
.
getId
())
\
+
'Alarm'
,
makeCallAlarm
(
alarm
))
def
setupPortalAlarms
(
self
):
if
not
self
.
portal
.
portal_alarms
.
isSubscribed
():
self
.
portal
.
portal_alarms
.
subscribe
()
self
.
assertTrue
(
self
.
portal
.
portal_alarms
.
isSubscribed
())
def
beforeTearDown
(
self
):
self
.
deSetUpPersistentDummyMailHost
()
if
self
.
abort_transaction
:
transaction
.
abort
()
def
setUpConfiguratorOnce
(
self
):
self
.
commit
()
self
.
portal
.
portal_templates
.
updateRepositoryBusinessTemplateList
(
repository_list
=
self
.
portal
.
portal_templates
.
getRepositoryList
())
self
.
commit
()
self
.
launchConfigurator
()
def
afterSetUp
(
self
):
self
.
login
()
self
.
createAlarmStep
()
# Execute the business configuration if not installed
business_configuration
=
self
.
getBusinessConfiguration
()
if
(
business_configuration
.
getSimulationState
()
!=
'installed'
):
self
.
portal
.
portal_caches
.
erp5_site_global_id
=
'%s'
%
random
.
random
()
self
.
portal
.
portal_caches
.
_p_changed
=
1
self
.
commit
()
self
.
portal
.
portal_caches
.
updateCache
()
self
.
bootstrapSite
()
self
.
commit
()
def
deSetUpPersistentDummyMailHost
(
self
):
if
'MailHost'
in
self
.
portal
.
objectIds
():
self
.
portal
.
manage_delObjects
([
'MailHost'
])
self
.
portal
.
manage_addProduct
[
'MailHost'
].
manage_addMailHost
(
'MailHost'
)
self
.
commit
()
def
setUpPersistentDummyMailHost
(
self
):
if
'MailHost'
in
self
.
portal
.
objectIds
():
self
.
portal
.
manage_delObjects
([
'MailHost'
])
self
.
portal
.
_setObject
(
'MailHost'
,
DummyMailHost
(
'MailHost'
))
self
.
portal
.
email_from_address
=
'xiaowu.zhang@nexedi.com'
self
.
portal
.
email_to_address
=
'xiaowu.zhang@nexedi.com'
def
getBusinessConfiguration
(
self
):
return
self
.
portal
.
business_configuration_module
[
"ors_configuration"
]
def
launchConfigurator
(
self
):
self
.
logMessage
(
'ORS launch Configurator'
)
self
.
login
()
# Create new Configuration
business_configuration
=
self
.
getBusinessConfiguration
()
response_dict
=
{}
configurator_options
=
{}
while
response_dict
.
get
(
"command"
,
"next"
)
!=
"install"
:
response_dict
=
self
.
portal
.
portal_configurator
.
_next
(
business_configuration
,
configurator_options
)
self
.
tic
()
self
.
portal
.
portal_configurator
.
startInstallation
(
business_configuration
,
REQUEST
=
self
.
portal
.
REQUEST
)
def
bootstrapSite
(
self
):
self
.
logMessage
(
'ORS bootstrapSite'
)
self
.
setupPortalAlarms
()
self
.
clearCache
()
self
.
tic
()
self
.
setUpConfiguratorOnce
()
self
.
tic
()
def
getBusinessTemplateList
(
self
):
"""
Install the business templates.
"""
return
[
'ors_configurator'
]
def
testPreference
(
self
):
default_site_preference
=
getattr
(
self
.
portal
.
portal_preferences
,
'default_site_preference'
,
None
)
self
.
assertEqual
(
default_site_preference
.
getPreferenceState
(),
'global'
)
self
.
assertEqual
(
self
.
portal
.
portal_preferences
.
getPreferredDataProductIndividualVariationBaseCategoryList
(),
[
'variation'
])
bt5/ors_configurator/TestTemplateItem/portal_components/test.erp5.testORSConfigurator.xml
0 → 100644
View file @
7eeb1099
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Test Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
testORSConfigurator
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testORSConfigurator
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_configurator/bt/dependency_list
0 → 100644
View file @
7eeb1099
erp5_configurator
\ No newline at end of file
bt5/ors_configurator/bt/template_format_version
0 → 100644
View file @
7eeb1099
1
\ No newline at end of file
bt5/ors_configurator/bt/template_path_list
0 → 100644
View file @
7eeb1099
business_configuration_module/ors_configuration
portal_workflow/ors_workflow
portal_workflow/ors_workflow/**
\ No newline at end of file
bt5/ors_configurator/bt/template_skin_id_list
0 → 100644
View file @
7eeb1099
ors_configurator
\ No newline at end of file
bt5/ors_configurator/bt/template_test_id_list
0 → 100644
View file @
7eeb1099
test.erp5.testORSConfigurator
\ No newline at end of file
bt5/ors_configurator/bt/test_dependency_list
0 → 100644
View file @
7eeb1099
erp5_full_text_mroonga_catalog
\ No newline at end of file
bt5/ors_configurator/bt/title
0 → 100644
View file @
7eeb1099
ors_configurator
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment