Commit 0605ce17 authored by Romain Courteaud's avatar Romain Courteaud

Keep compatibility with previous export format of...

Keep compatibility with previous export format of business_template_registered_skin_selections and do not modify exported value


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29359 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 40032b73
......@@ -967,10 +967,17 @@ class ObjectTemplateItem(BaseTemplateItem):
container.getParentValue().updateCache()
elif (container.meta_type == 'CMF Skins Tool') and \
(old_obj is not None):
# Keep compatibility with previous export format of
# business_template_registered_skin_selections
# and do not modify exported value
if obj.getProperty('business_template_registered_skin_selections',
None) is None:
# Keep previous value of register skin selection for skin folder
skin_selection_list = old_obj.getProperty(
'business_template_registered_skin_selections', None)
if skin_selection_list is not None:
if isinstance(skin_selection_list, basestring):
skin_selection_list = skin_selection_list.split(' ')
obj._setProperty(
'business_template_registered_skin_selections',
skin_selection_list, type='tokens')
......
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