Commit b271df8b authored by Jérome Perrin's avatar Jérome Perrin

update for new actions API

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30521 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5533d08e
......@@ -129,9 +129,9 @@ dialog.your_deferred_style.manage_edit_xmlrpc(\n
# Associate the dialog with type information\n
type_information = portal.portal_types.getTypeInfo(portal_type)\n
max_priority = 0\n
action_list = type_information.listActions()\n
action_list = type_information.contentValues(portal_type=\'Action Information\')\n
if action_list:\n
max_priority = max([ai.getPriority() for ai in action_list])\n
max_priority = max([ai.getFloatIndex() or 0 for ai in action_list])\n
\n
type_information.addAction(\n
action_id,\n
......
522
\ No newline at end of file
523
\ 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