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
59bb131f
Commit
59bb131f
authored
Jul 06, 2017
by
Ayush Tiwari
Committed by
Ayush Tiwari
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Workaround for portal_Categories/resource object while installing BM
parent
6565cb32
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+13
-1
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
59bb131f
...
@@ -1993,7 +1993,7 @@ class TemplateTool (BaseTool):
...
@@ -1993,7 +1993,7 @@ class TemplateTool (BaseTool):
classname
=
klass
.
__name__
classname
=
klass
.
__name__
obj_dict
=
object
.
__dict__
.
copy
()
obj_dict
=
object
.
__dict__
.
copy
()
attr_set
=
{
'_dav_writelocks'
,
'_filepath'
,
'_owner'
,
'_related_index'
,
attr_set
=
{
'_dav_writelocks'
,
'_filepath'
,
'_owner'
,
'_related_index'
,
'last_id'
,
'uid'
,
'last_id'
,
'uid'
,
'_mt_index'
,
'_count'
,
'_tree'
,
'__ac_local_roles__'
,
'__ac_local_roles_group_id_dict__'
}
'__ac_local_roles__'
,
'__ac_local_roles_group_id_dict__'
}
attr_set
.
update
((
'isIndexable'
,))
attr_set
.
update
((
'isIndexable'
,))
...
@@ -2013,6 +2013,18 @@ class TemplateTool (BaseTool):
...
@@ -2013,6 +2013,18 @@ class TemplateTool (BaseTool):
# Raise an error
# Raise an error
continue
continue
# Special case for configuration instance attributes
if
attr
in
[
'_config'
,
'_config_metadata'
]:
import
collections
# Order the dictionary so that comparison can be correct
obj_dict
[
attr
]
=
collections
.
OrderedDict
(
sorted
(
obj_dict
[
attr
].
items
()))
if
'valid_tags'
in
obj_dict
[
attr
]:
try
:
obj_dict
[
attr
][
'valid_tags'
]
=
collections
.
OrderedDict
(
sorted
(
obj_dict
[
attr
][
'valid_tags'
].
items
()))
except
AttributeError
:
# This can occur in case the valid_tag object is PersistentList
pass
if
'data'
in
obj_dict
:
if
'data'
in
obj_dict
:
try
:
try
:
obj_dict
[
'data'
]
=
obj_dict
.
get
(
'data'
).
__dict__
obj_dict
[
'data'
]
=
obj_dict
.
get
(
'data'
).
__dict__
...
...
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