Commit da29ab4c authored by Yoshinori Okuji's avatar Yoshinori Okuji

import WorkflowException


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1821 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 144062ca
...@@ -465,6 +465,7 @@ BTreeFolder2Base._cleanup = ERP5BTreeFolder2Base._cleanup ...@@ -465,6 +465,7 @@ BTreeFolder2Base._cleanup = ERP5BTreeFolder2Base._cleanup
from Products.DCWorkflow.DCWorkflow import DCWorkflowDefinition, StateChangeInfo, ObjectMoved, createExprContext, aq_parent, aq_inner from Products.DCWorkflow.DCWorkflow import DCWorkflowDefinition, StateChangeInfo, ObjectMoved, createExprContext, aq_parent, aq_inner
from Products.DCWorkflow import DCWorkflow from Products.DCWorkflow import DCWorkflow
from Products.DCWorkflow.Transitions import TRIGGER_WORKFLOW_METHOD from Products.DCWorkflow.Transitions import TRIGGER_WORKFLOW_METHOD
from Products.CMFCore.WorkflowCore import WorkflowException
class ValidationFailed(Exception): class ValidationFailed(Exception):
"""Transition can not be executed because data is not in consistent state""" """Transition can not be executed because data is not in consistent state"""
...@@ -474,6 +475,7 @@ DCWorkflow.ValidationFailed = ValidationFailed ...@@ -474,6 +475,7 @@ DCWorkflow.ValidationFailed = ValidationFailed
from AccessControl import ModuleSecurityInfo from AccessControl import ModuleSecurityInfo
ModuleSecurityInfo('Products.DCWorkflow.DCWorkflow').declarePublic('ValidationFailed') ModuleSecurityInfo('Products.DCWorkflow.DCWorkflow').declarePublic('ValidationFailed')
class ERP5DCWorkflowDefinition (DCWorkflowDefinition): class ERP5DCWorkflowDefinition (DCWorkflowDefinition):
def _executeTransition(self, ob, tdef=None, kwargs=None): def _executeTransition(self, ob, tdef=None, kwargs=None):
......
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