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 @@ ...@@ -68,7 +68,10 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <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 sort_id=\'int_index\'\n
value_list.sort(lambda x,y: cmp(x.getProperty(sort_id), y.getProperty(sort_id)))\n value_list.sort(lambda x,y: cmp(x.getProperty(sort_id), y.getProperty(sort_id)))\n
return value_list\n return value_list\n
...@@ -115,9 +118,9 @@ return value_list\n ...@@ -115,9 +118,9 @@ return value_list\n
<value> <value>
<tuple> <tuple>
<string>kw</string> <string>kw</string>
<string>filter</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>filter</string>
<string>value_list</string> <string>value_list</string>
<string>sort_id</string> <string>sort_id</string>
</tuple> </tuple>
......
53 54
\ 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