X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/945390ba1662e902513c9a4abf5c0d8366666d8b..aeb758b645034bb95fe967aca66aa014f5bce97b:/Products/Plinn/utils.py?ds=sidebyside diff --git a/Products/Plinn/utils.py b/Products/Plinn/utils.py index de68f22..f15fd09 100755 --- a/Products/Plinn/utils.py +++ b/Products/Plinn/utils.py @@ -76,10 +76,10 @@ def thisObjectComeFromPortalSkin(ob, portal=None): except BadRequest : return False -security.declarePublic('listActionProviders_') -def listActionProviders_(context) : - atool = getToolByName(context, 'portal_actions') - return atool.listActionProviders() +security.declarePublic('listWorkflowActions') +def listWorkflowActions(context) : + wftool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IWorkflowTool') + return wftool.listActions(object=context) def capitalizeCompoundGivenName(givenName) : givenName = givenName.strip()