Commit fb046856 authored by Jérome Perrin's avatar Jérome Perrin

Category_getSortedCategoryChildValueList can be replaced by...

Category_getSortedCategoryChildValueList can be replaced by getCategoryChildValueList method, this script is useless.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9707 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cdfbb1c2
......@@ -68,7 +68,10 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>value_list = filter(lambda o: o.getRelativeUrl() != context.getRelativeUrl(),context.getCategoryChildValueList())\n
<value> <string># this script is no longer needed.\n
context.log(\'Category_getSortedCategoryChildValueList\', \'use getCategoryChildValueList method\')\n
\n
value_list = filter(lambda o: o.getRelativeUrl() != context.getRelativeUrl(),context.getCategoryChildValueList())\n
sort_id=\'int_index\'\n
value_list.sort(lambda x,y: cmp(x.getProperty(sort_id), y.getProperty(sort_id)))\n
return value_list\n
......@@ -115,9 +118,9 @@ return value_list\n
<value>
<tuple>
<string>kw</string>
<string>filter</string>
<string>_getattr_</string>
<string>context</string>
<string>filter</string>
<string>value_list</string>
<string>sort_id</string>
</tuple>
......
53
\ No newline at end of file
54
\ 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