Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
2183aef7
Commit
2183aef7
authored
Jul 06, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Workaround for portal_Categories/resource object while installing BM
parent
09b85674
Changes
1
Hide 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 @
2183aef7
...
...
@@ -1990,7 +1990,7 @@ class TemplateTool (BaseTool):
classname
=
klass
.
__name__
obj_dict
=
object
.
__dict__
.
copy
()
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__'
}
attr_set
.
update
((
'isIndexable'
,))
...
...
@@ -2010,6 +2010,18 @@ class TemplateTool (BaseTool):
# Raise an error
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
:
try
:
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