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
......@@ -94,7 +94,7 @@
<value>
<dictionary>
<item>
<key> <string>description</string> </key>
<key> <string>description</string> </key>
<value> <string>The region.</string> </value>
</item>
<item>
......@@ -106,7 +106,7 @@
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<key> <string>items</string> </key>
<value>
<list/>
</value>
......@@ -116,7 +116,7 @@
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string>Region</string> </value>
</item>
</dictionary>
......@@ -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>
......
......@@ -94,7 +94,7 @@
<value>
<dictionary>
<item>
<key> <string>description</string> </key>
<key> <string>description</string> </key>
<value> <string>The activity of the person.</string> </value>
</item>
<item>
......@@ -106,7 +106,7 @@
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<key> <string>items</string> </key>
<value>
<list/>
</value>
......@@ -116,7 +116,7 @@
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string>Activity</string> </value>
</item>
</dictionary>
......@@ -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>
......@@ -69,7 +73,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>items</string> </key>
<key> <string>items</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
......@@ -79,7 +83,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
......@@ -90,7 +94,7 @@
<value>
<dictionary>
<item>
<key> <string>description</string> </key>
<key> <string>description</string> </key>
<value> <string>Products the person is interested in.</string> </value>
</item>
<item>
......@@ -102,7 +106,7 @@
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<key> <string>items</string> </key>
<value>
<list/>
</value>
......@@ -112,7 +116,7 @@
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string>Product Interest</string> </value>
</item>
</dictionary>
......@@ -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>
......@@ -61,7 +60,7 @@
<value>
<dictionary>
<item>
<key> <string>description</string> </key>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
......@@ -73,7 +72,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>items</string> </key>
<key> <string>items</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
......@@ -83,7 +82,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
......@@ -94,7 +93,7 @@
<value>
<dictionary>
<item>
<key> <string>description</string> </key>
<key> <string>description</string> </key>
<value> <string>The function of the organisation.</string> </value>
</item>
<item>
......@@ -105,18 +104,12 @@
<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>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string>Function</string> </value>
</item>
</dictionary>
......
......@@ -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>
......@@ -68,7 +67,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>items</string> </key>
<key> <string>items</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
......@@ -78,7 +77,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
......@@ -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>
......@@ -68,7 +67,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>items</string> </key>
<key> <string>items</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
......@@ -78,7 +77,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
......@@ -96,18 +95,12 @@
<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>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string>Social Form</string> </value>
</item>
</dictionary>
......
......@@ -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>
......@@ -61,7 +60,7 @@
<value>
<dictionary>
<item>
<key> <string>description</string> </key>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
......@@ -73,7 +72,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>items</string> </key>
<key> <string>items</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
......@@ -83,7 +82,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
......@@ -94,7 +93,7 @@
<value>
<dictionary>
<item>
<key> <string>description</string> </key>
<key> <string>description</string> </key>
<value> <string>The person\'s gender.</string> </value>
</item>
<item>
......@@ -105,18 +104,12 @@
<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>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string>Gender</string> </value>
</item>
</dictionary>
......
......@@ -18,7 +18,6 @@
<list>
<string>title</string>
<string>description</string>
<string>items</string>
</list>
</value>
</item>
......@@ -61,7 +60,7 @@
<value>
<dictionary>
<item>
<key> <string>description</string> </key>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
......@@ -73,7 +72,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>items</string> </key>
<key> <string>items</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
......@@ -83,7 +82,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
......@@ -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>
......@@ -69,7 +68,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>items</string> </key>
<key> <string>items</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
......@@ -79,7 +78,7 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
......@@ -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