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
5971f960
Commit
5971f960
authored
Sep 11, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Reduce old and new Installation State before comparing sub-objects
parent
5c675867
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+8
-0
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
5971f960
...
@@ -2173,6 +2173,10 @@ class TemplateTool (BaseTool):
...
@@ -2173,6 +2173,10 @@ class TemplateTool (BaseTool):
temp_object
=
True
,
temp_object
=
True
,
)
)
# Reduce both old and new Installation State
old_installation_state
.
reduceBusinessManager
()
new_installation_state
.
reduceBusinessManager
()
# Get path list for old and new states
# Get path list for old and new states
old_state_path_list
=
old_installation_state
.
getPathList
()
old_state_path_list
=
old_installation_state
.
getPathList
()
new_state_path_list
=
new_installation_state
.
getPathList
()
new_state_path_list
=
new_installation_state
.
getPathList
()
...
@@ -2190,6 +2194,10 @@ class TemplateTool (BaseTool):
...
@@ -2190,6 +2194,10 @@ class TemplateTool (BaseTool):
old_item
.
setProperty
(
'item_sign'
,
'-1'
)
old_item
.
setProperty
(
'item_sign'
,
'-1'
)
to_install_path_item_list
.
append
(
old_item
)
to_install_path_item_list
.
append
(
old_item
)
# Reduce old_installation_state again as changes as new sub-objects maybe
# added to the old_installation_state
old_installation_state
.
reduceBusinessManager
()
# XXX: At this point, we expect all the Business Manager objects as 'reduced',
# XXX: At this point, we expect all the Business Manager objects as 'reduced',
# thus all the BusinessItem sub-objects should have single value
# thus all the BusinessItem sub-objects should have single value
# Update hashes of item in old state before installation
# Update hashes of item in old state before installation
...
...
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