From b271df8b10859b9e0c521e13064e52a13ee5d4a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 12 Nov 2009 10:32:20 +0000
Subject: [PATCH] update for new actions API

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30521 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_toolbox/BusinessTemplate_createReport.xml            | 4 ++--
 bt5/erp5_forge/bt/revision                                    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/BusinessTemplate_createReport.xml b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/BusinessTemplate_createReport.xml
index 468569f91d..2876911555 100644
--- a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/BusinessTemplate_createReport.xml
+++ b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/BusinessTemplate_createReport.xml
@@ -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
diff --git a/bt5/erp5_forge/bt/revision b/bt5/erp5_forge/bt/revision
index 8db1e5f188..a9d3bc092c 100644
--- a/bt5/erp5_forge/bt/revision
+++ b/bt5/erp5_forge/bt/revision
@@ -1 +1 @@
-522
\ No newline at end of file
+523
\ No newline at end of file
-- 
2.30.9