Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
88c8b4f0
Commit
88c8b4f0
authored
Aug 25, 2017
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API of _initializeCache requires explicitly add portal_callables.
parent
ca134c19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5Type/patches/CMFCoreSkinnable.py
product/ERP5Type/patches/CMFCoreSkinnable.py
+2
-1
No files found.
product/ERP5Type/patches/CMFCoreSkinnable.py
View file @
88c8b4f0
...
@@ -68,6 +68,7 @@ Skinnable.SkinnableObjectManager.initializeCache = CMFCoreSkinnableSkinnableObje
...
@@ -68,6 +68,7 @@ Skinnable.SkinnableObjectManager.initializeCache = CMFCoreSkinnableSkinnableObje
def
skinResolve
(
self
,
selection
,
name
):
def
skinResolve
(
self
,
selection
,
name
):
try
:
try
:
portal_skins
=
aq_base
(
self
.
portal_skins
)
portal_skins
=
aq_base
(
self
.
portal_skins
)
portal_callables
=
aq_base
(
self
.
portal_callables
)
except
AttributeError
:
except
AttributeError
:
raise
AttributeError
,
name
raise
AttributeError
,
name
try
:
try
:
...
@@ -87,7 +88,7 @@ def skinResolve(self, selection, name):
...
@@ -87,7 +88,7 @@ def skinResolve(self, selection, name):
return
return
skin_list
=
portal_skins
.
_getSelections
()[
selection
[
0
]].
split
(
','
)
\
skin_list
=
portal_skins
.
_getSelections
()[
selection
[
0
]].
split
(
','
)
\
+
[
'portal_callables'
]
+
[
'portal_callables'
]
skin_selection_mapping
[
selection
]
=
skin_list
=
_initializeCache
(
skin_selection_mapping
[
selection
]
=
skin_list
=
_initializeCache
(
portal_callables
,
portal_skins
,
skin_list
[
1
+
skin_list
.
index
(
selection
[
1
]):])
portal_skins
,
skin_list
[
1
+
skin_list
.
index
(
selection
[
1
]):])
try
:
try
:
skin_folder_id
=
skin_list
[
name
]
skin_folder_id
=
skin_list
[
name
]
...
...
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