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

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
parent bfc5c490
...@@ -63,6 +63,7 @@ node = context.getSourceValue()\n ...@@ -63,6 +63,7 @@ node = context.getSourceValue()\n
tracking_parameters = {\n tracking_parameters = {\n
\'node_uid\': node.getUid(),\n \'node_uid\': node.getUid(),\n
\'resource_uid\': context.getResourceUid(),\n \'resource_uid\': context.getResourceUid(),\n
\'output\': 1,\n
\n \n
\'item_catalog_title\': request.get(\'title\') or \'\',\n \'item_catalog_title\': request.get(\'title\') or \'\',\n
\'item_catalog_reference\': request.get(\'reference\') or \'\',\n \'item_catalog_reference\': request.get(\'reference\') or \'\',\n
...@@ -80,15 +81,13 @@ for tracking_brain in portal.portal_simulation.getCurrentTrackingList(\n ...@@ -80,15 +81,13 @@ for tracking_brain in portal.portal_simulation.getCurrentTrackingList(\n
item = tracking_brain.getObject()\n item = tracking_brain.getObject()\n
\n \n
# XXX can this be done in SQL ?\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 if check_variation and \\\n
item.Item_getVariationCategoryList() not in\\\n item.Item_getVariationCategoryList() not in\\\n
acceptable_variation_category_list:\n acceptable_variation_category_list:\n
continue\n continue\n
\n \n
# XXX can this be done in SQL ?\n
if item.Item_getCurrentSiteValue() != node:\n
continue\n
\n
result_set[item] = 1\n result_set[item] = 1\n
\n \n
return result_set.keys()\n return result_set.keys()\n
......
124 125
\ 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