Commit b7ad72fe authored by Nicolas Delaby's avatar Nicolas Delaby

Reuse template_skin_id_list

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30556 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b063a6e9
......@@ -748,8 +748,9 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
folder_id = self.aq_parent.id
# Find a business template which manages the context skin folder.
for template in self.portal_templates.getInstalledBusinessTemplateList():
if folder_id in template.getTemplateSkinIdList():
for skin_folder_id in template.getTemplateSkinIdList():
template_skin_id_list = template.getTemplateSkinIdList()
if folder_id in template_skin_id_list:
for skin_folder_id in template_skin_id_list:
iterate(getattr(skins_tool, skin_folder_id))
break
iterate(skins_tool.erp5_core)
......
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