Commit 5b5d86a0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

define TransformationRuleError in ERP5Type.Errors.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20298 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a11e5ba8
...@@ -30,18 +30,15 @@ ...@@ -30,18 +30,15 @@
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Acquisition import aq_base, aq_parent, aq_inner, aq_acquire from Acquisition import aq_base, aq_parent, aq_inner, aq_acquire
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
from Products.PythonScripts.Utility import allow_class
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5.Document.Rule import Rule from Products.ERP5.Document.Rule import Rule
from Products.ERP5Type.Errors import TransformationRuleError
from Products.ERP5.Document.TransformationSourcingRule import\ from Products.ERP5.Document.TransformationSourcingRule import\
TransformationSourcingRuleMixin TransformationSourcingRuleMixin
from zLOG import LOG from zLOG import LOG
class TransformationRuleError(Exception): pass
allow_class(TransformationRuleError)
class TransformationRule(TransformationSourcingRuleMixin, Rule): class TransformationRule(TransformationSourcingRuleMixin, Rule):
""" """
Order Rule object make sure an Order in the similation Order Rule object make sure an Order in the similation
......
...@@ -16,8 +16,10 @@ class DeferredCatalogError(Exception): ...@@ -16,8 +16,10 @@ class DeferredCatalogError(Exception):
class ImmobilisationValidityError(Exception):pass class ImmobilisationValidityError(Exception):pass
class ImmobilisationCalculationError(Exception):pass class ImmobilisationCalculationError(Exception):pass
class TransformationRuleError(Exception):pass
allow_class(DeferredCatalogError) allow_class(DeferredCatalogError)
allow_class(ImmobilisationValidityError) allow_class(ImmobilisationValidityError)
allow_class(ImmobilisationCalculationError) allow_class(ImmobilisationCalculationError)
allow_class(WorkflowException) allow_class(WorkflowException)
allow_class(TransformationRuleError)
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