Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Yusei Tahara
erp5
Commits
0a653574
Commit
0a653574
authored
Jul 24, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Improve migration function by also migrating component objects
parent
5529619c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+21
-0
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
0a653574
...
@@ -695,6 +695,27 @@ class TemplateTool (BaseTool):
...
@@ -695,6 +695,27 @@ class TemplateTool (BaseTool):
#workflow_path_list.append('portal_workflow/' + workflow + '/**')
#workflow_path_list.append('portal_workflow/' + workflow + '/**')
template_path_list
.
extend
(
workflow_path_list
)
template_path_list
.
extend
(
workflow_path_list
)
# For tests in portal components add them with portal_components head
test_id_list
=
import_template
.
getTemplateTestIdList
()
test_path_list
=
[]
for
path
in
test_id_list
:
test_path_list
.
append
(
'portal_components/'
+
path
)
template_path_list
.
extend
(
test_path_list
)
# For documents in portal components add them with portal_components head
document_id_list
=
import_template
.
getTemplateDocumentIdList
()
document_path_list
=
[]
for
path
in
document_id_list
:
document_path_list
.
append
(
'portal_components/'
+
path
)
template_path_list
.
extend
(
document_path_list
)
# For extensions in portal components add them with portal_components head
extension_id_list
=
import_template
.
getTemplateExtensionIdList
()
extension_path_list
=
[]
for
path
in
extension_id_list
:
extension_path_list
.
append
(
'portal_components/'
+
path
)
template_path_list
.
extend
(
extension_path_list
)
# For paths, we add them directly to the path list
# For paths, we add them directly to the path list
path_list
=
import_template
.
getTemplatePathList
()
path_list
=
import_template
.
getTemplatePathList
()
for
path
in
path_list
:
for
path
in
path_list
:
...
...
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