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 @@ ...@@ -94,7 +94,7 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>The region.</string> </value> <value> <string>The region.</string> </value>
</item> </item>
<item> <item>
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <value>
<list/> <list/>
</value> </value>
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Region</string> </value> <value> <string>Region</string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -84,11 +84,11 @@ if context.getSubordination():\n ...@@ -84,11 +84,11 @@ if context.getSubordination():\n
if subordination_value is not None:\n if subordination_value is not None:\n
function_value = subordination_value.getFunctionValue()\n function_value = subordination_value.getFunctionValue()\n
if function_value is not None:\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 \n
result.extend(getattr(\n result.extend(getattr(\n
portal.portal_categories.function,\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 \n
return result\n return result\n
</string> </value> </string> </value>
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>The activity of the person.</string> </value> <value> <string>The activity of the person.</string> </value>
</item> </item>
<item> <item>
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <value>
<list/> <list/>
</value> </value>
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Activity</string> </value> <value> <string>Activity</string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -60,6 +60,10 @@ ...@@ -60,6 +60,10 @@
<key> <string>tales</string> </key> <key> <string>tales</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -69,7 +73,7 @@ ...@@ -69,7 +73,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
...@@ -79,7 +83,7 @@ ...@@ -79,7 +83,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -90,7 +94,7 @@ ...@@ -90,7 +94,7 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>Products the person is interested in.</string> </value> <value> <string>Products the person is interested in.</string> </value>
</item> </item>
<item> <item>
...@@ -102,7 +106,7 @@ ...@@ -102,7 +106,7 @@
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <value>
<list/> <list/>
</value> </value>
...@@ -112,7 +116,7 @@ ...@@ -112,7 +116,7 @@
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Product Interest</string> </value> <value> <string>Product Interest</string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -135,7 +139,7 @@ ...@@ -135,7 +139,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
<list> <list>
<string>title</string> <string>title</string>
<string>description</string> <string>description</string>
<string>items</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -101,12 +100,6 @@ ...@@ -101,12 +100,6 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
<list> <list>
<string>title</string> <string>title</string>
<string>description</string> <string>description</string>
<string>items</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -61,7 +60,7 @@ ...@@ -61,7 +60,7 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
...@@ -73,7 +72,7 @@ ...@@ -73,7 +72,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
...@@ -83,7 +82,7 @@ ...@@ -83,7 +82,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -94,7 +93,7 @@ ...@@ -94,7 +93,7 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>The function of the organisation.</string> </value> <value> <string>The function of the organisation.</string> </value>
</item> </item>
<item> <item>
...@@ -105,18 +104,12 @@ ...@@ -105,18 +104,12 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Function</string> </value> <value> <string>Function</string> </value>
</item> </item>
</dictionary> </dictionary>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
<list> <list>
<string>title</string> <string>title</string>
<string>description</string> <string>description</string>
<string>items</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -105,12 +104,6 @@ ...@@ -105,12 +104,6 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
<list> <list>
<string>title</string> <string>title</string>
<string>description</string> <string>description</string>
<string>items</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -101,12 +100,6 @@ ...@@ -101,12 +100,6 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
<value> <value>
<list> <list>
<string>title</string> <string>title</string>
<string>items</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -68,7 +67,7 @@ ...@@ -68,7 +67,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
...@@ -78,7 +77,7 @@ ...@@ -78,7 +77,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -96,12 +95,6 @@ ...@@ -96,12 +95,6 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
<value> <value>
<list> <list>
<string>title</string> <string>title</string>
<string>items</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -68,7 +67,7 @@ ...@@ -68,7 +67,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
...@@ -78,7 +77,7 @@ ...@@ -78,7 +77,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -96,18 +95,12 @@ ...@@ -96,18 +95,12 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Social Form</string> </value> <value> <string>Social Form</string> </value>
</item> </item>
</dictionary> </dictionary>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
<list> <list>
<string>title</string> <string>title</string>
<string>description</string> <string>description</string>
<string>items</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -97,12 +96,6 @@ ...@@ -97,12 +96,6 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Person_viewFieldLibrary</string> </value> <value> <string>Person_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
<list> <list>
<string>title</string> <string>title</string>
<string>description</string> <string>description</string>
<string>items</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -101,12 +100,6 @@ ...@@ -101,12 +100,6 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Person_viewFieldLibrary</string> </value> <value> <string>Person_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
<list> <list>
<string>title</string> <string>title</string>
<string>description</string> <string>description</string>
<string>items</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -61,7 +60,7 @@ ...@@ -61,7 +60,7 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
...@@ -73,7 +72,7 @@ ...@@ -73,7 +72,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
...@@ -83,7 +82,7 @@ ...@@ -83,7 +82,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -94,7 +93,7 @@ ...@@ -94,7 +93,7 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>The person\'s gender.</string> </value> <value> <string>The person\'s gender.</string> </value>
</item> </item>
<item> <item>
...@@ -105,18 +104,12 @@ ...@@ -105,18 +104,12 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Gender</string> </value> <value> <string>Gender</string> </value>
</item> </item>
</dictionary> </dictionary>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
<list> <list>
<string>title</string> <string>title</string>
<string>description</string> <string>description</string>
<string>items</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -61,7 +60,7 @@ ...@@ -61,7 +60,7 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
...@@ -73,7 +72,7 @@ ...@@ -73,7 +72,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
...@@ -83,7 +82,7 @@ ...@@ -83,7 +82,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -105,12 +104,6 @@ ...@@ -105,12 +104,6 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
<list> <list>
<string>title</string> <string>title</string>
<string>description</string> <string>description</string>
<string>items</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -69,7 +68,7 @@ ...@@ -69,7 +68,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
...@@ -79,7 +78,7 @@ ...@@ -79,7 +78,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -101,12 +100,6 @@ ...@@ -101,12 +100,6 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
......
204 205
\ No newline at end of file \ 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