Commit ea6a37b5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

move more legacy rules from ERP5/Document/ to ERP5Legacy/Document/.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33759 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 23728d83
......@@ -34,7 +34,7 @@ from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
TREE_DELIVERED_CACHE_KEY = 'AppliedRule._isTreeDelivered_cache'
TREE_DELIVERED_CACHE_ENABLED = 'TREE_DELIVERED_CACHE_ENABLED'
......
......@@ -27,7 +27,7 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
class DeliverySimulationRule(Rule):
"""
......
......@@ -27,7 +27,7 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from Products.ERP5.Document.PredicateMatrix import PredicateMatrix
class PaymentSimulationRule(Rule, PredicateMatrix):
......
......@@ -33,7 +33,7 @@ from string import capitalize
from Products.ERP5Type.DateUtils import centis, getClosestDate, addToDate
from Products.ERP5Type.DateUtils import getDecimalNumberOfYearsBetween
from Products.ERP5Type import Permissions
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from Products.CMFCore.utils import getToolByName
from Products.ERP5.Document.ImmobilisationMovement import NO_CHANGE_METHOD
......
......@@ -29,7 +29,7 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from zLOG import LOG, WARNING
class DeliveryRule(Rule):
......
......@@ -29,7 +29,7 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from Products.ERP5Legacy.Document.DeliveryRule import DeliveryRule
from zLOG import LOG
......
......@@ -28,7 +28,7 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from Products.ERP5.Document.PredicateMatrix import PredicateMatrix
from zLOG import LOG, BLATHER, INFO, PROBLEM, WARNING
......
......@@ -30,7 +30,7 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from zLOG import LOG, WARNING
class InvoicingRule(Rule):
......
......@@ -27,7 +27,7 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from Products.ERP5Legacy.Document.DeliveryRule import DeliveryRule
from zLOG import LOG, WARNING
from DateTime import DateTime
......
......@@ -29,7 +29,7 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from Products.ERP5Legacy.Document.DeliveryRule import DeliveryRule
from zLOG import LOG, WARNING
......
......@@ -31,7 +31,7 @@ from Acquisition import aq_base, aq_parent, aq_inner, aq_acquire
from Products.CMFCore.utils import getToolByName
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from zLOG import LOG, INFO
......
......@@ -28,9 +28,9 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from Products.ERP5Legacy.Document.OrderRule import OrderRule
from Products.ERP5.Document.TransformationModelRule import TransformationModelRuleMixin
from Products.ERP5Legacy.Document.TransformationModelRule import TransformationModelRuleMixin
from zLOG import LOG, WARNING
......
......@@ -28,9 +28,9 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from Products.ERP5Legacy.Document.OrderRule import OrderRule
from Products.ERP5.Document.TransformationSourcingRule import\
from Products.ERP5Legacy.Document.TransformationSourcingRule import\
TransformationSourcingRuleMixin
from zLOG import LOG, WARNING
......
......@@ -29,7 +29,7 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from Products.ERP5Legacy.Document.DeliveryRule import DeliveryRule
class TaxRule(DeliveryRule):
......
......@@ -30,7 +30,7 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
class TradeModelRule(Rule):
"""
......
......@@ -33,7 +33,7 @@ import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, interfaces
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from Products.ERP5Type.Errors import TransformationRuleError
class MovementFactory:
......
......@@ -31,9 +31,9 @@ import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, interfaces
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
from Products.ERP5Type.Errors import TransformationRuleError
from Products.ERP5.Document.TransformationSourcingRule import\
from Products.ERP5Legacy.Document.TransformationSourcingRule import\
TransformationSourcingRuleMixin
class TransformationRule(TransformationSourcingRuleMixin, Rule):
......
......@@ -31,8 +31,8 @@ import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, interfaces
from Products.ERP5.Document.Rule import Rule
from Products.ERP5.Document.TransformationModelRule import MovementFactory, TransformationModelRuleMixin
from Products.ERP5Legacy.Document.Rule import Rule
from Products.ERP5Legacy.Document.TransformationModelRule import MovementFactory, TransformationModelRuleMixin
class TransformationSourcingRuleError(Exception): pass
......
......@@ -33,7 +33,7 @@ import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, interfaces
from Products.ERP5.Document.Rule import Rule
from Products.ERP5Legacy.Document.Rule import Rule
class ProductionOrderError(Exception): pass
class TransformationSourcingRuleError(Exception): pass
......
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