The method is manage_changeWorkflows(self, default_chain, props=None, Request=None)
This is what I am doing to try and use it:
workflow_tool = getToolByName(self, 'portal_workflow')
# Modify workflow chain (Workflow by type) workflow_tool.manage_changeWorkflows(default_chain='chain_image', props='image_workflow', REQUEST=None)
Here is the traceback:
File "/usr/local/zope/instance1/Products/CMFCore/WorkflowTool.py", line 175, in manage_changeWorkflows
chain = props.get(field_name, '(Default)').strip()
AttributeError: 'str' object has no attribute 'get'
It is probably something simple, hope someone can help me with where I am going wrong. Many thanks.
Regards,
David
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )