Commit c59ad072 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Get portal_workflow from a portal.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30618 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent feeb36a5
......@@ -142,7 +142,7 @@ def getChainByType(context):
This is only useful in order to use
portal_workflow.manage_changeWorkflows
"""
pw = context.portal_workflow
pw = context.getPortalObject().portal_workflow
cbt = pw._chains_by_type
ti = pw._listTypeInfo()
types_info = []
......@@ -5184,7 +5184,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
"""
Returns the current state in installation
"""
portal_workflow = getToolByName(self, 'portal_workflow')
portal_workflow = getToolByName(self.getPortalObject(), 'portal_workflow')
wf = portal_workflow.getWorkflowById(
'business_template_installation_workflow')
return wf._getWorkflowStateOf(self, id_only=id_only )
......
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