Commit 9a844ce6 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@13747 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 944f6193
......@@ -75,11 +75,8 @@ stool = portal.portal_simulation\n
\n
# we use a different selection for dialog params, because we never want this\n
# selection to be reseteted\n
dialog_params_selection = portal.portal_selections.getSelectionFor(\n
\'grouping_reference_fast_input_selection\')\n
selection_params = {}\n
if dialog_params_selection is not None:\n
selection_params = dialog_params_selection.getParams()\n
selection_params = portal.portal_selections.getSelectionParamsFor(\n
\'grouping_reference_fast_input_selection\')\n
\n
# support pseudo sorting; sorting is done by uid.\n
orig_sort_on = portal.portal_selections.getSelectionSortOrder(\n
......@@ -199,7 +196,6 @@ return stool.getMovementHistoryList(\n
<string>portal</string>
<string>ctool</string>
<string>stool</string>
<string>dialog_params_selection</string>
<string>selection_params</string>
<string>None</string>
<string>orig_sort_on</string>
......
......@@ -68,10 +68,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>selection = context.portal_selections.getSelectionFor(\n
"transmission_sheet_add_invoice_selection")\n
\n
for uid in uids:\n
<value> <string>for uid in uids:\n
invoice = context.portal_catalog.getObject(uid)\n
aggregate_list = invoice.getAggregateValueList()\n
invoice.setAggregateValueList(aggregate_list + [context])\n
......@@ -124,7 +121,6 @@ return context.REQUEST.RESPONSE.redirect(\n
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>selection</string>
<string>_getiter_</string>
<string>uid</string>
<string>invoice</string>
......
......@@ -68,10 +68,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>selection = context.portal_selections.getSelectionFor(\n
\'purchase_invoice_transmission_sheet_list_selection\')\n
\n
for uid in selection.getCheckedUids():\n
<value> <string>for uid in context.portal_selections.getSelectionChekedUidsFor(\'purchase_invoice_transmission_sheet_list_selection\'):\n
invoice = context.portal_catalog.getObject(uid)\n
aggregate_list = invoice.getAggregateValueList()\n
if context in aggregate_list :\n
......@@ -129,7 +126,6 @@ return context.REQUEST.RESPONSE.redirect(\n
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>selection</string>
<string>_getiter_</string>
<string>uid</string>
<string>invoice</string>
......
89
\ No newline at end of file
90
\ 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