Commit 8d3fc8a2 authored by Aurel's avatar Aurel

fix bug in the settings of skins layer


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4648 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 202d62ff
......@@ -902,9 +902,12 @@ class SkinTemplateItem(ObjectTemplateItem):
action = update_dict[relative_url]
if action == 'nothing':
continue
object_path = relative_url.split('/')
if len(object_path) > 2:
continue # not a skin folder
object = self._objects[relative_url]
skin_id = relative_url.split('/')[1]
if hasattr(object, 'getProperty'):
skin_id = object_path[1]
if hasattr(aq_base(object), 'getProperty'):
selection_list = object.getProperty('business_template_registered_skin_selections', None)
else:
continue
......
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