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