Commit b8801758 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

make Filesystem Directory View's priority -1 instead of 0.

with this change, when a new skin layer is created, Filesystem Directory Views (eg. activity, zpt_control, etc.) will be registered at the bottom of the new skin layer, i.e. we will get a similar result of bootstrap skin layers like 'View' layer.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29164 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3a7eb192
...@@ -214,8 +214,8 @@ def registerSkinFolder(skin_tool, skin_folder): ...@@ -214,8 +214,8 @@ def registerSkinFolder(skin_tool, skin_folder):
selection_list.insert(0, skin_folder_id) selection_list.insert(0, skin_folder_id)
if reorder_skin_selection: if reorder_skin_selection:
selection_list.sort( selection_list.sort(
key=lambda x: x in skin_tool.objectIds() and -skin_tool[x].getProperty( key=lambda x: x in skin_tool.objectIds() and skin_tool[x].getProperty(
'business_template_skin_layer_priority', 0) or 0) 'business_template_skin_layer_priority', skin_tool[x].meta_type == 'Filesystem Directory View' and -1 or 0) or 0, reverse=True)
if (skin_name in skin_layer_list): if (skin_name in skin_layer_list):
skin_tool.manage_skinLayers(skinpath=selection_list, skin_tool.manage_skinLayers(skinpath=selection_list,
skinname=skin_name, add_skin=1) skinname=skin_name, add_skin=1)
......
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