Commit 42f54cc7 authored by Julien Muchembled's avatar Julien Muchembled

Revert r39158

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39192 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 74965519
......@@ -830,6 +830,7 @@ class WorkflowMethod( Method ):
""" Invoke the wrapped method, and deal with the results.
"""
instance.pdb()
wf = getToolByName(instance, 'portal_workflow', None)
if wf is None or not hasattr(wf, 'wrapWorkflowMethod'):
# No workflow tool found.
......@@ -849,4 +850,5 @@ try:
except ImportError:
from Products.CMFCore import WorkflowCore
# We're on CMF 2, where WorkflowMethod has been removed from CMFCore
#WorkflowCore.WorkflowMethod = WorkflowCore.WorkflowAction = WorkflowMethod
#WorkflowCore.WorkflowMethod = WorkflowMethod
WorkflowCore.WorkflowAction = WorkflowMethod
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