Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
1d9da5f3
Commit
1d9da5f3
authored
Dec 18, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TemplateTool: SImplify reduction function during migration of BT to BM
parent
344b2c7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+14
-15
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
1d9da5f3
...
...
@@ -852,22 +852,21 @@ class TemplateTool (BaseTool):
version
=
dependency
[
1
]
if
version
:
version
=
version
[
1
:
-
1
]
base_bt
=
self
.
getLastestBTOnRepos
(
dependency
[
0
],
version
)
else
:
try
:
base_bt
=
self
.
getLastestBTOnRepos
(
dependency
[
0
])
except
BusinessTemplateIsMeta
:
bt_list
=
self
.
getProviderList
(
dependency
[
0
])
# We explicilty use the Business Template which is used the most
# while dealing with provision li
st
repository_list
=
self
.
getRepositoryList
()
if
dependency
[
0
]
==
'erp5_full_text_catalog'
:
base_bt
=
[
repository_list
[
1
],
'erp5_full_text_mroonga_catalog'
]
if
dependency
[
0
]
==
'erp5_view_style'
:
base_bt
=
[
repository_list
[
0
],
'erp5_xhtml_style'
]
if
dependency
[
0
]
==
'erp5_catalog'
:
base_bt
=
[
repository_list
[
0
],
'erp5_mysql_innodb_catalog'
]
# XXX: Create path for the BT(s) here
version
=
None
try
:
base_bt
=
self
.
getLastestBTOnRepos
(
dependency
[
0
],
version
)
except
BusinessTemplateIsMeta
:
bt_list
=
self
.
getProviderList
(
dependency
[
0
])
# We explicilty use the Business Template which is used the mo
st
# while dealing with provision list
repository_list
=
self
.
getRepositoryList
()
if
dependency
[
0
]
==
'erp5_full_text_catalog'
:
base_bt
=
[
repository_list
[
0
],
'erp5_full_text_mroonga_catalog'
]
if
dependency
[
0
]
==
'erp5_view_style'
:
base_bt
=
[
repository_list
[
1
],
'erp5_xhtml_style'
]
if
dependency
[
0
]
==
'erp5_catalog'
:
base_bt
=
[
repository_list
[
1
],
'erp5_mysql_innodb_catalog'
]
# Download the base_bt
base_bt_path
=
os
.
path
.
join
(
base_bt
[
0
],
base_bt
[
1
])
...
...
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