Commit 75d8237e authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_accounting: zope.interface changed on python3

  Now we rely on implementer decorator
parent 87166970
Pipeline #38222 passed with stage
in 0 seconds
...@@ -42,6 +42,7 @@ from erp5.component.interface.IRule import IRule ...@@ -42,6 +42,7 @@ from erp5.component.interface.IRule import IRule
from erp5.component.interface.IDivergenceController import IDivergenceController from erp5.component.interface.IDivergenceController import IDivergenceController
from erp5.component.interface.IMovementCollectionUpdater import IMovementCollectionUpdater from erp5.component.interface.IMovementCollectionUpdater import IMovementCollectionUpdater
@zope.interface.implementer(IRule, IDivergenceController, IMovementCollectionUpdater,)
class SubscriptionItemRootSimulationRule(RuleMixin, MovementCollectionUpdaterMixin, Predicate): class SubscriptionItemRootSimulationRule(RuleMixin, MovementCollectionUpdaterMixin, Predicate):
""" """
Subscription Item Rule object generates future movements in relation Subscription Item Rule object generates future movements in relation
...@@ -57,11 +58,6 @@ class SubscriptionItemRootSimulationRule(RuleMixin, MovementCollectionUpdaterMix ...@@ -57,11 +58,6 @@ class SubscriptionItemRootSimulationRule(RuleMixin, MovementCollectionUpdaterMix
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
zope.interface.implements(IRule,
IDivergenceController,
IMovementCollectionUpdater,)
# Default Properties # Default Properties
property_sheets = ( property_sheets = (
PropertySheet.Base, PropertySheet.Base,
......
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