Commit 526bc655 authored by Jérome Perrin's avatar Jérome Perrin

calculate actions from actual context

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42900 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent edab2287
......@@ -53,19 +53,24 @@
<value> <string>request = container.REQUEST\n
kw.update(request.form)\n
\n
portal = context.getPortalObject()\n
\n
# Base_updateListboxSelection cannot be found.\n
Base_updateListboxSelection = getattr(context, \'Base_updateListboxSelection\', None)\n
if Base_updateListboxSelection is not None:\n
Base_updateListboxSelection()\n
\n
action_context = portal.restrictedTraverse(request.get(\'object_path\', \'?\'), context)\n
\n
new_print_action_list = context.Base_fixDialogActions(\n
context.Base_filterDuplicateActions(\n
context.portal_actions.listFilteredActionsFor(context)), \'object_report\')\n
portal.portal_actions.listFilteredActionsFor(action_context)), \'object_report\')\n
\n
if new_print_action_list:\n
return context.ERP5Site_redirect(new_print_action_list[0][\'url\'],\n
keep_items={\'form_id\': form_id,\n
\'cancel_url\': cancel_url,\n
\'object_path\': request.get(\'object_path\', context.getPath()),\n
\'dialog_category\': \'object_report\'}, **kw)\n
</string> </value>
</item>
......
1058
\ No newline at end of file
1059
\ 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