Commit de97502f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use selection_name instead of selection.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13802 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f52f8072
......@@ -68,7 +68,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>params = selection.getParams()\n
<value> <string>params = context.portal_selections.getSelectionParamsFor(selection_name)\n
\n
params[\'stat\'] = 1\n
params[\'omit_input\'] = 1\n
......@@ -98,7 +98,7 @@ return float(\'%.02f\' % (row.total_price and - row.total_price or 0.0))\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>selection=None, **kw</string> </value>
<value> <string>selection=None, selection_name=None, **kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -118,13 +118,14 @@ return float(\'%.02f\' % (row.total_price and - row.total_price or 0.0))\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>selection</string>
<string>selection_name</string>
<string>kw</string>
<string>_getattr_</string>
<string>params</string>
......
......@@ -68,7 +68,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>params = selection.getParams()\n
<value> <string>params = context.portal_selections.getSelectionParamsFor(selection_name)\n
\n
params[\'stat\'] = 1\n
params[\'omit_output\'] = 1\n
......@@ -97,7 +97,7 @@ return float(\'%.02f\' % (row.total_price or 0.0))\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>selection=None, **kw</string> </value>
<value> <string>selection=None, selection_name=None, **kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -117,13 +117,14 @@ return float(\'%.02f\' % (row.total_price or 0.0))\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>selection</string>
<string>selection_name</string>
<string>kw</string>
<string>_getattr_</string>
<string>params</string>
......
......@@ -69,7 +69,7 @@
<item>
<key> <string>_body</string> </key>
<value> <string># XXX bad name: AccountingTransaction_getMirrorSection sounds more consistent\n
section_category=selection.getParams().get(\'section_category\')\n
section_category=context.portal_selections.getSelectionParamsFor(selection_name).get(\'section_category\')\n
if not section_category:\n
return\n
\n
......@@ -100,7 +100,7 @@ if mirror_section is not None:\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>brain, selection=None, **kwd</string> </value>
<value> <string>brain, selection=None, selection_name=None, **kwd</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -120,7 +120,7 @@ if mirror_section is not None:\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>2</int> </value>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
......@@ -128,6 +128,7 @@ if mirror_section is not None:\n
<tuple>
<string>brain</string>
<string>selection</string>
<string>selection_name</string>
<string>kwd</string>
<string>_getattr_</string>
<string>section_category</string>
......
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