Commit 7059f8e8 authored by Sebastien Robin's avatar Sebastien Robin

2009-04-28 Seb

* make this script working if validation_state is already given as a parameter to this script

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26683 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f735a14d
......@@ -78,10 +78,12 @@ if movement is None:\n
else:\n
# sort_method can already exist in kw.\n
kw[\'sort_method\'] = sort_by_date\n
if validation_state is None:\n
validation_state=\'validated\'\n
predicate_list = context.portal_domains.searchPredicateList(\n
context=movement,\n
portal_type=\'Currency Exchange Line\',\n
validation_state=\'validated\',\n
validation_state=validation_state,\n
test=1,\n
**kw)\n
\n
......@@ -103,7 +105,7 @@ else:\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>default=None, movement=None, REQUEST=None, **kw</string> </value>
<value> <string>default=None, movement=None, REQUEST=None, validation_state=None, **kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -123,7 +125,7 @@ else:\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>3</int> </value>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
......@@ -132,6 +134,7 @@ else:\n
<string>default</string>
<string>movement</string>
<string>REQUEST</string>
<string>validation_state</string>
<string>kw</string>
<string>sort_by_date</string>
<string>None</string>
......@@ -158,6 +161,7 @@ else:\n
<none/>
<none/>
<none/>
<none/>
</tuple>
</value>
</item>
......
590
\ No newline at end of file
591
\ 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