import string
import re
-from types import StringType
from random import randrange
from Acquisition import aq_base
from quopri import encodestring
+from json import dumps as json_dumps
from zope.globalrequest import getRequest
from AccessControl.PermissionRole import rolesForPermissionOn
from AccessControl import ModuleSecurityInfo
security = ModuleSecurityInfo( 'Products.Plinn.utils' )
+security.declarePublic('json_dumps')
+
security.declarePublic('thisObjectComeFromPortalSkin')
def thisObjectComeFromPortalSkin(ob, portal=None):
""" check if ob comes from portal_skins """
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()