[Erp5-report] r29164 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Sep 24 14:18:08 CEST 2009
Author: kazuhiko
Date: Thu Sep 24 14:18:05 2009
New Revision: 29164
URL: http://svn.erp5.org?rev=29164&view=rev
Log:
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.
Modified:
erp5/trunk/products/ERP5/Document/BusinessTemplate.py
Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=29164&r1=29163&r2=29164&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Thu Sep 24 14:18:05 2009
@@ -214,8 +214,8 @@
selection_list.insert(0, skin_folder_id)
if reorder_skin_selection:
selection_list.sort(
- key=lambda x: x in skin_tool.objectIds() and -skin_tool[x].getProperty(
- 'business_template_skin_layer_priority', 0) or 0)
+ key=lambda x: x in skin_tool.objectIds() and skin_tool[x].getProperty(
+ '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):
skin_tool.manage_skinLayers(skinpath=selection_list,
skinname=skin_name, add_skin=1)
More information about the Erp5-report
mailing list