Commit 54bdfb59 authored by Thierry's avatar Thierry

2007-09-17 Thierry

* Manage sort order in category listfields for Persons and Organisations

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16421 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6ab84f52
......@@ -139,7 +139,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: getattr(context.portal_categories.region, preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))()</string> </value>
<value> <string>python: getattr(context.portal_categories.region, preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id="int_index")</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -84,11 +84,11 @@ if context.getSubordination():\n
if subordination_value is not None:\n
function_value = subordination_value.getFunctionValue()\n
if function_value is not None:\n
result.extend(getattr(function_value, category_child_item_list_method_id)(filter_node=1))\n
result.extend(getattr(function_value, category_child_item_list_method_id)(filter_node=1,local_sort_id="int_index"))\n
\n
result.extend(getattr(\n
portal.portal_categories.function,\n
category_child_item_list_method_id)(filter_node=1))\n
category_child_item_list_method_id)(filter_node=1,local_sort_id="int_index"))\n
\n
return result\n
</string> </value>
......
......@@ -139,7 +139,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: getattr(context.portal_categories.activity, preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))()</string> </value>
<value> <string>python: getattr(here.portal_categories.activity, preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id="int_index")</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -60,6 +60,10 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -135,7 +139,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: getattr(context.portal_categories.product_line, preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))()</string> </value>
<value> <string>python: getattr(context.portal_categories.product_line, preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id="int_index")</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -18,7 +18,6 @@
<list>
<string>title</string>
<string>description</string>
<string>items</string>
</list>
</value>
</item>
......@@ -101,12 +100,6 @@
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
......@@ -18,7 +18,6 @@
<list>
<string>title</string>
<string>description</string>
<string>items</string>
</list>
</value>
</item>
......@@ -105,12 +104,6 @@
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
......@@ -18,7 +18,6 @@
<list>
<string>title</string>
<string>description</string>
<string>items</string>
</list>
</value>
</item>
......@@ -105,12 +104,6 @@
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
......@@ -18,7 +18,6 @@
<list>
<string>title</string>
<string>description</string>
<string>items</string>
</list>
</value>
</item>
......@@ -101,12 +100,6 @@
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
......@@ -17,7 +17,6 @@
<value>
<list>
<string>title</string>
<string>items</string>
</list>
</value>
</item>
......@@ -96,12 +95,6 @@
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
......@@ -17,7 +17,6 @@
<value>
<list>
<string>title</string>
<string>items</string>
</list>
</value>
</item>
......@@ -96,12 +95,6 @@
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
......@@ -18,7 +18,6 @@
<list>
<string>title</string>
<string>description</string>
<string>items</string>
</list>
</value>
</item>
......@@ -97,12 +96,6 @@
<key> <string>form_id</string> </key>
<value> <string>Person_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
......@@ -18,7 +18,6 @@
<list>
<string>title</string>
<string>description</string>
<string>items</string>
</list>
</value>
</item>
......@@ -101,12 +100,6 @@
<key> <string>form_id</string> </key>
<value> <string>Person_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
......@@ -18,7 +18,6 @@
<list>
<string>title</string>
<string>description</string>
<string>items</string>
</list>
</value>
</item>
......@@ -105,12 +104,6 @@
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
......@@ -18,7 +18,6 @@
<list>
<string>title</string>
<string>description</string>
<string>items</string>
</list>
</value>
</item>
......@@ -105,12 +104,6 @@
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
......@@ -18,7 +18,6 @@
<list>
<string>title</string>
<string>description</string>
<string>items</string>
</list>
</value>
</item>
......@@ -101,12 +100,6 @@
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
204
\ No newline at end of file
205
\ No newline at end of file
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