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
407122cf
Commit
407122cf
authored
Apr 27, 2017
by
Ayush Tiwari
Committed by
Ayush Tiwari
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Always set the object after removing te acquisition
parent
3f2b33b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
product/ERP5/Document/BusinessManager.py
product/ERP5/Document/BusinessManager.py
+1
-1
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+4
-7
No files found.
product/ERP5/Document/BusinessManager.py
View file @
407122cf
...
...
@@ -278,7 +278,7 @@ class BusinessManager(Folder):
imported_manager
=
connection
.
importFile
(
file
)
self
.
title
=
imported_manager
.
title
for
obj
in
imported_manager
.
objectValues
():
self
.
_setObject
(
obj
.
getId
(),
obj
)
self
.
_setObject
(
obj
.
getId
(),
aq_base
(
obj
)
)
self
.
setProperty
(
'template_path_list'
,
imported_manager
.
getProperty
(
'template_path_list'
))
def
__add__
(
self
,
other
):
...
...
product/ERP5/Tool/TemplateTool.py
View file @
407122cf
...
...
@@ -1703,7 +1703,7 @@ class TemplateTool (BaseTool):
title
=
'Old Installation State'
,
)
for
item
in
combined_installed_path_item
:
old_installation_state
.
_setObject
(
item
.
getId
(),
item
)
old_installation_state
.
_setObject
(
item
.
getId
(),
aq_base
(
item
)
)
forbidden_bm_title_list
=
[
'Old Installation State'
,]
for
bm
in
bm_list
:
...
...
@@ -1723,8 +1723,9 @@ class TemplateTool (BaseTool):
portal_type
=
'Business Manager'
,
title
=
'New Installation State'
,
)
for
item
in
combined_new_path_item
:
new_installation_state
.
_setObject
(
item
.
getId
(),
item
)
new_installation_state
.
_setObject
(
item
.
getId
(),
aq_base
(
item
)
)
# Create installation process, which have the changes to be made in the
# OFS during installation. Importantly, it should also be a Business Manager
...
...
@@ -1774,7 +1775,7 @@ class TemplateTool (BaseTool):
to_install_path_item_list
.
append
(
item
)
for
item
in
to_install_path_item_list
:
installation_process
.
_setObject
(
item
.
getId
(),
item
)
installation_process
.
_setObject
(
item
.
getId
(),
aq_base
(
item
)
)
error_list
=
self
.
compareOldStateToOFS
(
installation_process
,
old_installation_state
)
...
...
@@ -1925,10 +1926,6 @@ class TemplateTool (BaseTool):
value
=
new_item
.
objectValues
()[
0
]
except
IndexError
:
continue
if
getattr
(
value
,
'_tree'
,
None
):
# This check is required cause only after first access we get the
# values from the dict
delattr
(
value
,
'_tree'
)
new_item
.
install
(
installation_process
)
return
error_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