Commit fe421e4f authored by Yusuke Muraoka's avatar Yusuke Muraoka

change the declaration of using interfaces, which were still used __implements__

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27624 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 993397df
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
############################################################################## ##############################################################################
from ExtensionClass import Base from ExtensionClass import Base
import zope.interface
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
...@@ -214,7 +215,7 @@ class TransformationModelRule(TransformationModelRuleMixin, Rule): ...@@ -214,7 +215,7 @@ class TransformationModelRule(TransformationModelRuleMixin, Rule):
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate, zope.interface.implements(interfaces.IPredicate,
interfaces.IRule ) interfaces.IRule )
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
# #
############################################################################## ##############################################################################
import zope.interface
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
...@@ -50,7 +51,7 @@ class TransformationRule(TransformationSourcingRuleMixin, Rule): ...@@ -50,7 +51,7 @@ class TransformationRule(TransformationSourcingRuleMixin, Rule):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate, zope.interface.implements(interfaces.IPredicate,
interfaces.IRule ) interfaces.IRule )
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
# #
############################################################################## ##############################################################################
import zope.interface
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
...@@ -60,7 +61,7 @@ class TransformationSourcingModelRule(TransformationModelRuleMixin, Rule): ...@@ -60,7 +61,7 @@ class TransformationSourcingModelRule(TransformationModelRuleMixin, Rule):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate, zope.interface.implements(interfaces.IPredicate,
interfaces.IRule ) interfaces.IRule )
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
import ExtensionClass import ExtensionClass
import zope.interface
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
...@@ -139,7 +140,7 @@ class TransformationSourcingRule(TransformationSourcingRuleMixin, Rule): ...@@ -139,7 +140,7 @@ class TransformationSourcingRule(TransformationSourcingRuleMixin, Rule):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate, zope.interface.implements(interfaces.IPredicate,
interfaces.IRule ) interfaces.IRule )
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( 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