Commit ac62d8f3 authored by Romain Courteaud's avatar Romain Courteaud

Keep compatibility with business_template_registered_skin_selections property

saved as a string instead of tokens.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28765 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ed2a0f7d
...@@ -197,6 +197,9 @@ def registerSkinFolder(skin_tool, skin_folder): ...@@ -197,6 +197,9 @@ def registerSkinFolder(skin_tool, skin_folder):
except AttributeError: except AttributeError:
skin_selection_list = skin_tool.getSkinSelections() skin_selection_list = skin_tool.getSkinSelections()
if isinstance(skin_selection_list, basestring):
skin_selection_list = skin_selection_list.split()
for skin_name in skin_selection_list: for skin_name in skin_selection_list:
if (skin_name not in skin_tool.getSkinSelections()) and \ if (skin_name not in skin_tool.getSkinSelections()) and \
......
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