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 @@ ...@@ -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>
......
...@@ -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>
...@@ -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>
...@@ -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>
...@@ -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>
...@@ -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>
...@@ -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>
......
...@@ -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>
...@@ -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>
...@@ -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>
......
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