Commit 63a701e9 authored by Nicolas Delaby's avatar Nicolas Delaby

get parameter from kw instead of request.

add additional parameter validation_state to filter out Items
by adding additional configuration parameters in listbox

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41318 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dbe73c64
...@@ -53,7 +53,6 @@ ...@@ -53,7 +53,6 @@
<value> <string>from Products.ERP5Type.Document import newTempBase\n <value> <string>from Products.ERP5Type.Document import newTempBase\n
from Products.ERP5Type.Utils import cartesianProduct\n from Products.ERP5Type.Utils import cartesianProduct\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
request = portal.REQUEST\n
\n \n
tracking_parameters = {\n tracking_parameters = {\n
\'node_uid\': context.getSourceUid(),\n \'node_uid\': context.getSourceUid(),\n
...@@ -61,9 +60,10 @@ tracking_parameters = {\n ...@@ -61,9 +60,10 @@ tracking_parameters = {\n
\'at_date\': context.getStartDate(),\n \'at_date\': context.getStartDate(),\n
\'output\': 1,\n \'output\': 1,\n
\n \n
\'item_catalog_title\': request.get(\'title\') or \'\',\n \'item_catalog_title\': kw.get(\'title\') or \'\',\n
\'item_catalog_reference\': request.get(\'reference\') or \'\',\n \'item_catalog_reference\': kw.get(\'reference\') or \'\',\n
\'item_catalog_portal_type\': request.get(\'portal_type\') or \'\',\n \'item_catalog_portal_type\': kw.get(\'portal_type\') or \'\',\n
\'item_catalog_validation_state\': kw.get(\'validation_state\') or \'\',\n
}\n }\n
\n \n
\n \n
...@@ -132,7 +132,6 @@ return result_list\n ...@@ -132,7 +132,6 @@ return result_list\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</string> <string>portal</string>
<string>request</string>
<string>tracking_parameters</string> <string>tracking_parameters</string>
<string>bool</string> <string>bool</string>
<string>check_variation</string> <string>check_variation</string>
......
250 253
\ 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