Commit d1297927 authored by Romain Courteaud's avatar Romain Courteaud

Possible surcharged skin folders can also be used for proxification.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37959 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 10a00f91
...@@ -755,6 +755,15 @@ class ERP5Form(ZMIForm, ZopePageTemplate): ...@@ -755,6 +755,15 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
template_skin_id_list = template.getTemplateSkinIdList() template_skin_id_list = template.getTemplateSkinIdList()
if folder_id in template_skin_id_list: if folder_id in template_skin_id_list:
folder_id_set.update(set(template_skin_id_list)) folder_id_set.update(set(template_skin_id_list))
# Find folders which can be surcharged by this skin folder
if '_' in folder_id:
surcharged_folder_id = 'erp5_%s' % folder_id.split('_')[-1]
if (surcharged_folder_id != folder_id) and \
(getattr(self.portal_skins, surcharged_folder_id, None) \
is not None):
folder_id_set.add(surcharged_folder_id)
break break
return list(folder_id_set) return list(folder_id_set)
......
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