Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
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
0
Merge Requests
0
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
Boxiang Sun
wendelin
Commits
749fe117
Commit
749fe117
authored
Sep 27, 2019
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup categories from spreadheet rather than hard code. Add mimic business configuration script.
parent
2ef4e779
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1115 additions
and
163 deletions
+1115
-163
bt5/erp5_wendelin_scalability_test/PathTemplateItem/business_configuration_module/default_wendelin_configuration/1/32.xml
...figuration_module/default_wendelin_configuration/1/32.xml
+60
-0
bt5/erp5_wendelin_scalability_test/PathTemplateItem/business_configuration_module/default_wendelin_configuration/1/32/default_configuration_spreadsheet.xml
..._configuration/1/32/default_configuration_spreadsheet.xml
+973
-0
bt5/erp5_wendelin_scalability_test/PathTemplateItem/portal_categories/function/company/manager.xml
...mplateItem/portal_categories/function/company/manager.xml
+0
-87
bt5/erp5_wendelin_scalability_test/PathTemplateItem/portal_categories/group/my_group.xml
...est/PathTemplateItem/portal_categories/group/my_group.xml
+0
-71
bt5/erp5_wendelin_scalability_test/SkinTemplateItem/portal_skins/erp5_wendelin_scalability_test/BusinessConfiguration_setupWendelinConfigurationSave.py
...t/BusinessConfiguration_setupWendelinConfigurationSave.py
+53
-0
bt5/erp5_wendelin_scalability_test/SkinTemplateItem/portal_skins/erp5_wendelin_scalability_test/standard_wendelin_category.ods.ods
...delin_scalability_test/standard_wendelin_category.ods.ods
+0
-0
bt5/erp5_wendelin_scalability_test/SkinTemplateItem/portal_skins/erp5_wendelin_scalability_test/standard_wendelin_category.ods.xml
...delin_scalability_test/standard_wendelin_category.ods.xml
+28
-0
bt5/erp5_wendelin_scalability_test/bt/template_path_list
bt5/erp5_wendelin_scalability_test/bt/template_path_list
+1
-5
No files found.
bt5/erp5_wendelin_scalability_test/PathTemplateItem/business_configuration_module/default_wendelin_configuration/1/32.xml
0 → 100644
View file @
749fe117
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Categories Spreadsheet Configurator Item"
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>
id
</string>
</key>
<value>
<string>
32
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Categories Spreadsheet Configurator Item
</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/erp5_wendelin_scalability_test/PathTemplateItem/business_configuration_module/default_wendelin_configuration/1/32/default_configuration_spreadsheet.xml
0 → 100644
View file @
749fe117
This diff is collapsed.
Click to expand it.
bt5/erp5_wendelin_scalability_test/PathTemplateItem/portal_categories/function/company/manager.xml
deleted
100644 → 0
View file @
2ef4e779
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_folders_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Delete_objects_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
codification
</string>
</key>
<value>
<string>
COMP-MAN
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
MAN
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
manager
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<string>
Manager
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Company Manager
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_wendelin_scalability_test/PathTemplateItem/portal_categories/group/my_group.xml
deleted
100644 → 0
View file @
2ef4e779
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_folders_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Delete_objects_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_group
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Scalability company
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_wendelin_scalability_test/SkinTemplateItem/portal_skins/erp5_wendelin_scalability_test/BusinessConfiguration_setupWendelinConfigurationSave.py
View file @
749fe117
"""
This script creates a Business Configuration as if user selected it during configuration process.
"""
configuration_save
=
context
.
restrictedTraverse
(
configuration_save_url
)
configuration_save
=
context
.
restrictedTraverse
(
configuration_save_url
)
# bt5 setup
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_knowledge_pad'
,
'erp5_trade'
,
'erp5_project'
,
'erp5_simulation'
,
'erp5_ods_style'
,
'erp5_odt_style'
,
'erp5_rss_style'
,
'erp5_trade'
,
# to develop faster
'erp5_code_mirror'
,
'erp5_forge'
,
'erp5_development_wizard'
,
'erp5_dhtml_style'
,
# install later UI bt5s as broken now
#'erp5_wendelin_renderjs_ui',
'erp5_hal_json_style'
,
'erp5_web_renderjs_ui'
,
'erp5_wendelin'
,
'erp5_wendelin_examples'
,
'erp5_wendelin_data'
,
'erp5_wendelin_development'
)
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
,
)
# categories setup
configuration_save
.
addConfigurationItem
(
"Categories Spreadsheet Configurator Item"
,
configuration_spreadsheet_data
=
getattr
(
context
,
"standard_wendelin_category.ods"
).
data
)
# security setup
configuration_save
.
addConfigurationItem
(
"Portal Type Roles Spreadsheet Configurator Item"
,
configuration_save
.
addConfigurationItem
(
"Portal Type Roles Spreadsheet Configurator Item"
,
configuration_spreadsheet_data
=
getattr
(
context
,
"standard_wendelin_portal_types_roles.ods"
).
data
)
configuration_spreadsheet_data
=
getattr
(
context
,
"standard_wendelin_portal_types_roles.ods"
).
data
)
...
...
bt5/erp5_wendelin_scalability_test/SkinTemplateItem/portal_skins/erp5_wendelin_scalability_test/standard_wendelin_category.ods.ods
0 → 100644
View file @
749fe117
File added
bt5/erp5_wendelin_scalability_test/SkinTemplateItem/portal_skins/erp5_wendelin_scalability_test/standard_wendelin_category.ods.xml
0 → 100644
View file @
749fe117
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
standard_wendelin_category.ods
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
application/vnd.oasis.opendocument.spreadsheet
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Standard Workflow Categories.ods
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_wendelin_scalability_test/bt/template_path_list
View file @
749fe117
business_configuration_module/default_wendelin_configuration
business_configuration_module/default_wendelin_configuration
business_configuration_module/default_wendelin_configuration/**
business_configuration_module/default_wendelin_configuration/**
portal_categories/function/company/manager
portal_categories/function/company/manager/**
portal_categories/group/my_group
portal_categories/group/my_group/**
\ 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