From fb0468569994ec000d1f81ccb3dd47b96614b471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 6 Sep 2006 15:05:12 +0000 Subject: [PATCH] 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 --- .../erp5_core/Category_getSortedCategoryChildValueList.xml | 7 +++++-- product/ERP5/bootstrap/erp5_core/bt/revision | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Category_getSortedCategoryChildValueList.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Category_getSortedCategoryChildValueList.xml index 579687bc31..10958b3439 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Category_getSortedCategoryChildValueList.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Category_getSortedCategoryChildValueList.xml @@ -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> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 8783e30511..43c451e0c6 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -53 \ No newline at end of file +54 \ No newline at end of file -- 2.30.9