From b3847c685b789958be03607701607d99334ed590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 26 May 2009 14:25:32 +0000 Subject: [PATCH] pass output=1, to have only item that are currently at the node git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27193 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_item/DeliveryLine_getSelectableItemList.xml | 7 +++---- bt5/erp5_item/bt/revision | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_getSelectableItemList.xml b/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_getSelectableItemList.xml index 3eb4b81e7d..f2ee62cc34 100644 --- a/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_getSelectableItemList.xml +++ b/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_getSelectableItemList.xml @@ -63,6 +63,7 @@ node = context.getSourceValue()\n tracking_parameters = {\n \'node_uid\': node.getUid(),\n \'resource_uid\': context.getResourceUid(),\n + \'output\': 1,\n \n \'item_catalog_title\': request.get(\'title\') or \'\',\n \'item_catalog_reference\': request.get(\'reference\') or \'\',\n @@ -80,15 +81,13 @@ for tracking_brain in portal.portal_simulation.getCurrentTrackingList(\n item = tracking_brain.getObject()\n \n # XXX can this be done in SQL ?\n + # it could, by computing all variation texts, but I don\'t think this is\n + # really necessary.\n if check_variation and \\\n item.Item_getVariationCategoryList() not in\\\n acceptable_variation_category_list:\n continue\n \n - # XXX can this be done in SQL ?\n - if item.Item_getCurrentSiteValue() != node:\n - continue\n - \n result_set[item] = 1\n \n return result_set.keys()\n diff --git a/bt5/erp5_item/bt/revision b/bt5/erp5_item/bt/revision index a09fd8ad47..00c98bb3ad 100644 --- a/bt5/erp5_item/bt/revision +++ b/bt5/erp5_item/bt/revision @@ -1 +1 @@ -124 \ No newline at end of file +125 \ No newline at end of file -- 2.30.9