Commit ea56ba91 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@13806 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dbf32de9
...@@ -70,14 +70,13 @@ ...@@ -70,14 +70,13 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
index = selection.getIndex()\n index = context.portal_selections.getSelectionIndexFor(selection_name)\n
name = selection.getName()\n
object = brain.getObject()\n object = brain.getObject()\n
object = object.getDestinationValue()\n object = object.getDestinationValue()\n
if object is None:\n if object is None:\n
url = None\n url = None\n
else:\n else:\n
url = object.absolute_url() + \'/view?selection_index=%s&selection_name=%s&reset=1\' % (index, name)\n url = object.absolute_url() + \'/view?selection_index=%s&selection_name=%s&reset=1\' % (index, selection_name)\n
\n \n
return url\n return url\n
...@@ -98,7 +97,7 @@ return url\n ...@@ -98,7 +97,7 @@ return url\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>brain=None, selection=None</string> </value> <value> <string>brain=None, selection=None, selection_name=None</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -118,7 +117,7 @@ return url\n ...@@ -118,7 +117,7 @@ return url\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,7 +127,6 @@ return url\n ...@@ -128,7 +127,6 @@ return url\n
<string>selection</string> <string>selection</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>index</string> <string>index</string>
<string>name</string>
<string>object</string> <string>object</string>
<string>None</string> <string>None</string>
<string>url</string> <string>url</string>
......
...@@ -70,8 +70,7 @@ ...@@ -70,8 +70,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from ZTUtils import make_query\n <value> <string>from ZTUtils import make_query\n
\n \n
index = selection.getIndex()\n index = context.portal_selections.getSelectionIndexFor(selection_name)\n
name = selection.getName()\n
object = brain.getObject()\n object = brain.getObject()\n
\n \n
# this is for domain_tree mode\n # this is for domain_tree mode\n
...@@ -80,7 +79,7 @@ if object.getPortalType() == "Category" : \n ...@@ -80,7 +79,7 @@ if object.getPortalType() == "Category" : \n
\n \n
method = \'Account_viewAccountingTransactionList\'\n method = \'Account_viewAccountingTransactionList\'\n
kw = { \'selection_index\': str(index),\n kw = { \'selection_index\': str(index),\n
\'selection_name\' : name, \n \'selection_name\' : selection_name, \n
\'reset\' : \'1\', \n \'reset\' : \'1\', \n
}\n }\n
\n \n
...@@ -101,7 +100,7 @@ return object.getPath() + \'/\' + method + \'?\' + make_query(kw)\n ...@@ -101,7 +100,7 @@ return object.getPath() + \'/\' + method + \'?\' + make_query(kw)\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>brain=None, selection=None, **kwd</string> </value> <value> <string>brain=None, selection=None, selection_name=None, **kwd</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -121,7 +120,7 @@ return object.getPath() + \'/\' + method + \'?\' + make_query(kw)\n ...@@ -121,7 +120,7 @@ return object.getPath() + \'/\' + method + \'?\' + make_query(kw)\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>
...@@ -134,7 +133,6 @@ return object.getPath() + \'/\' + method + \'?\' + make_query(kw)\n ...@@ -134,7 +133,6 @@ return object.getPath() + \'/\' + method + \'?\' + make_query(kw)\n
<string>make_query</string> <string>make_query</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>index</string> <string>index</string>
<string>name</string>
<string>object</string> <string>object</string>
<string>method</string> <string>method</string>
<string>str</string> <string>str</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