Commit 4463bfb4 authored by Vincent Pelletier's avatar Vincent Pelletier

Products.ERP5Types.patches.CMFCoreSkinnable: Only add portal_callables to skin...

Products.ERP5Types.patches.CMFCoreSkinnable: Only add portal_callables to skin selection when tool exists

Avoids a noisy log:
  WARNING Products.ERP5Type.patches.CMFCoreSkinnable Skin folder portal_callables is in selection list but does not exist.
parent 67988359
Pipeline #30683 failed with stage
in 0 seconds
......@@ -93,8 +93,9 @@ def skinResolve(self, selection, name):
if selection in skin_selection_mapping or \
isinstance(selection, basestring):
return
skin_list = portal_skins._getSelections()[selection[0]].split(',') \
+ ['portal_callables']
skin_list = portal_skins._getSelections()[selection[0]].split(',')
if portal_callables is not None:
skin_list.append('portal_callables')
skin_selection_mapping[selection] = skin_list = _initializeCache(portal_callables,
portal_skins, skin_list[1+skin_list.index(selection[1]):])
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment