Commit 441ad491 authored by Jérome Perrin's avatar Jérome Perrin

we have zope3 interface, so declare classes to implement zope3 interface

(__implements__ is for zope2 intefaces)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27539 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2291ded9
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet
......@@ -61,7 +62,7 @@ class AccountingTransactionLine(DeliveryLine):
)
# Declarative interfaces
__implements__ = ( )
zope.interface.implements( )
security.declareProtected(Permissions.AccessContentsInformation,
'getInventoriatedQuantity')
......
......@@ -28,6 +28,7 @@
import types
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.CMFCore.utils import getToolByName
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from DateTime import DateTime
from copy import deepcopy
......@@ -57,7 +58,7 @@ class AmortisationRule(Rule):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate,
zope.interface.implements( interfaces.IPredicate,
interfaces.IRule )
# Default Properties
......
......@@ -27,6 +27,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
from Products.ERP5.Variated import Variated
......@@ -61,7 +62,7 @@ class Amount(Base, Variated):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = (interfaces.IVariated,)
zope.interface.implements(interfaces.IVariated,)
property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.Amount import Amount
......@@ -64,7 +65,7 @@ class AmountFilter(MappedValue, Amount):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
......@@ -53,7 +54,7 @@ class AnnotationLine(PaySheetLine):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
......@@ -131,7 +132,7 @@ class AssortedResource(TransformedResource):
)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Local property sheet
_properties = (
......
......@@ -88,7 +88,7 @@ class BalanceTransaction(AccountingTransaction, Inventory):
isRADContent = 1
isDelivery = 1
#__implements__ = ( interfaces.Inventory, )
#zope.interface.implements( interfaces.Inventory, )
# Declarative security
security = ClassSecurityInfo()
......
......@@ -27,6 +27,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
......@@ -68,7 +69,7 @@ class BankAccount(Folder, Coordinate, MetaNode):
)
# Declarative interfaces
__implements__ = ( interfaces.ICoordinate, )
zope.interface.implements( interfaces.ICoordinate, )
security.declareProtected(Permissions.AccessContentsInformation, 'getReference')
......
......@@ -57,7 +57,7 @@ class CategoryBudgetVariation(BudgetVariation):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
# __implements__ = (BudgetVariation, )
# zope.interface.implements(BudgetVariation, )
def asBudgetPredicate(self):
"""This budget variation in a predicate
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type.DivergenceMessage import DivergenceMessage
......@@ -50,7 +51,7 @@ class CategoryDivergenceTester(PropertyDivergenceTester):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IDivergenceTester, )
zope.interface.implements( interfaces.IDivergenceTester, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -27,6 +27,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
......@@ -63,7 +64,7 @@ class Container(Movement, XMLObject):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -27,6 +27,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
......@@ -51,7 +52,7 @@ class ContainerCell(DeliveryCell):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -27,6 +27,8 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
......@@ -54,7 +56,7 @@ class ContainerLine(DeliveryLine):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -25,6 +25,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import zope.interface
from Acquisition import aq_base
from AccessControl import ClassSecurityInfo
from Products.ERP5.Document.Predicate import Predicate
......@@ -48,7 +49,7 @@ class ContributionPredicate(Predicate, XMLObject):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = (interfaces.IPredicate,)
zope.interface.implements(interfaces.IPredicate,)
# Default Properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
......@@ -80,7 +81,7 @@ class Coordinate(Base):
isRADContent = 1
# Declarative interface
__implements__ = (interfaces.ICoordinate, )
zope.interface.implements(interfaces.ICoordinate, )
# Declarative security (replaces __ac_permissions__)
security = ClassSecurityInfo()
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
......@@ -49,7 +50,7 @@ class Currency(Resource):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -27,6 +27,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
from Acquisition import aq_base
......@@ -57,7 +58,7 @@ class DeliveryCell(MappedValue, Movement, ImmobilisationMovement):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
......@@ -56,7 +57,7 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated,
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -27,6 +27,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.Rule import Rule
......@@ -48,7 +49,7 @@ class DeliveryRule(Rule):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate,
zope.interface.implements( interfaces.IPredicate,
interfaces.IRule )
# Default Properties
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
import re, socket, sys
from DateTime import DateTime
from operator import add
......@@ -652,7 +653,7 @@ class Document(PermanentURLMixIn, XMLObject, UrlMixIn, ConversionCacheMixin, Sna
)
# Declarative interfaces
__implements__ = ()
zope.interface.implements()
searchable_property_list = ('asText', 'title', 'description', 'id', 'reference',
'version', 'short_title',
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
......@@ -82,7 +83,7 @@ class Domain(Predicate, MetaNode, MetaResource):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IPredicate, )
zope.interface.implements( interfaces.IPredicate, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -27,6 +27,8 @@
#
##############################################################################
import zope.interface
import re, types
from DateTime import DateTime
from Globals import get_request
......@@ -135,7 +137,7 @@ class EmailDocument(File, TextDocument):
)
# Declarative interfaces
__implements__ = ()
zope.interface.implements()
# Searchable Text - at least search the body message
# - later: search attachments too
......
......@@ -26,6 +26,8 @@
#
##############################################################################
import zope.interface
import mimetypes
import re
......@@ -106,7 +108,7 @@ class File(Document, CMFFile, ConversionCacheMixin):
'subject', 'source_reference', 'source_project_title',)
# Declarative interfaces
#__implements__ = ( , )
#zope.interface.implements( , )
### Special edit method
security.declarePrivate( '_edit' )
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
......@@ -65,7 +66,7 @@ class GeographicAddress(Coordinate, Base):
)
# Declarative interfaces
__implements__ = ( interfaces.ICoordinate, )
zope.interface.implements( interfaces.ICoordinate, )
security.declareProtected(Permissions.AccessContentsInformation, 'asText')
def asText(self):
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
......@@ -62,7 +63,7 @@ class Immobilisation(XMLObject, Delivery):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
......@@ -56,7 +57,7 @@ class ImmobilisationCell(Movement, XMLObject, ImmobilisationMovement):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
......@@ -57,7 +58,7 @@ class ImmobilisationLine(Movement, XMLObject, ImmobilisationMovement, DeliveryLi
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
......@@ -84,7 +85,7 @@ class ImmobilisationMovement(Movement, XMLObject):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
......@@ -59,7 +60,7 @@ class InternetProtocolAddress(Base, Coordinate):
)
# Declarative interfaces
__implements__ = ( interfaces.ICoordinate, )
zope.interface.implements( interfaces.ICoordinate, )
def asText(self):
"""
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Acquisition import aq_base
from AccessControl import ClassSecurityInfo
......@@ -53,7 +54,7 @@ class InventoryCell(DeliveryCell):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,8 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Acquisition import aq_base
......@@ -52,7 +54,7 @@ class InventoryLine(DeliveryLine):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
......@@ -53,7 +54,7 @@ class InvoiceCell(DeliveryCell):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
......@@ -56,7 +57,7 @@ class InvoiceLine(DeliveryLine):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -27,6 +27,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.Rule import Rule
......@@ -47,7 +48,7 @@ class InvoiceRule(DeliveryRule):
isPortalContent = 1
isRADContent = 1
__implements__ = ( interfaces.IPredicate,
zope.interface.implements( interfaces.IPredicate,
interfaces.IRule )
# Declarative security
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.Rule import Rule
......@@ -52,7 +53,7 @@ class InvoiceTransactionRule(Rule, PredicateMatrix):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate,
zope.interface.implements( interfaces.IPredicate,
interfaces.IRule )
# Default Properties
......
......@@ -28,6 +28,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5.Document.Rule import Rule
......@@ -49,7 +50,7 @@ class InvoicingRule(Rule):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate,
zope.interface.implements( interfaces.IPredicate,
interfaces.IRule )
# Default Properties
......
......@@ -26,6 +26,8 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
......@@ -66,7 +68,7 @@ class MappedValue(Predicate, Amount):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IPredicate, interfaces.IVariated,)
zope.interface.implements( interfaces.IPredicate, interfaces.IVariated,)
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from warnings import warn
from AccessControl import ClassSecurityInfo
......@@ -183,7 +184,7 @@ class Movement(XMLObject, Amount):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -59,7 +59,7 @@ class NodeBudgetVariation(BudgetVariation):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
# __implements__ = (BudgetVariation, )
# zope.interface.implements(BudgetVariation, )
def asBudgetPredicate(self):
"""This budget variation in a predicate
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
......@@ -45,7 +46,7 @@ class OpenOrder(Delivery):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = (interfaces.IExpandable, interfaces.IOpenOrderExpander)
zope.interface.implements(interfaces.IExpandable, interfaces.IOpenOrderExpander)
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
......@@ -47,7 +48,7 @@ class OpenOrderCell(SupplyCell):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.SupplyLine import SupplyLine
......@@ -49,7 +50,7 @@ class OpenOrderLine(SupplyLine):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated,
zope.interface.implements( interfaces.IVariated,
interfaces.IPredicate )
# Declarative properties
......
......@@ -25,6 +25,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5.Document.Rule import Rule
......@@ -47,7 +48,7 @@ class OpenOrderRule(DeliveryRule):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate,
zope.interface.implements( interfaces.IPredicate,
interfaces.IRule )
# Default Properties
......
......@@ -27,6 +27,8 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
from Acquisition import aq_base
......@@ -53,7 +55,7 @@ class OrderCell(DeliveryCell):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
......@@ -62,7 +63,7 @@ class OrderLine(DeliveryLine):
)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
def applyToOrderLineRelatedMovement(self, portal_type='Simulation Movement',
method_id = 'expand'):
......
......@@ -27,6 +27,8 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.Rule import Rule
......@@ -48,7 +50,7 @@ class OrderRule(DeliveryRule):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate,
zope.interface.implements( interfaces.IPredicate,
interfaces.IRule )
# Default Properties
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
......@@ -58,7 +59,7 @@ class Path(MappedValue):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IPredicate, )
zope.interface.implements( interfaces.IPredicate, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5.Document.InvoiceCell import InvoiceCell
......@@ -49,7 +50,7 @@ class PaySheetCell(InvoiceCell):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5.Document.TradeModelLine import TradeModelLine
......@@ -51,7 +52,7 @@ class PaySheetModelLine(TradeModelLine):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5.Document.DeliveryCell import DeliveryCell
......@@ -46,7 +47,7 @@ class PaySheetModelSlice(DeliveryCell):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,8 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5.Document.Invoice import Invoice
......@@ -63,7 +65,7 @@ class PaySheetTransaction(Invoice):
)
# Declarative Interface
__implements__ = ( )
zope.interface.implements( )
security.declareProtected(Permissions.AccessContentsInformation,
'getRatioQuantityFromReference')
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5.Document.AccountingTransactionLine import AccountingTransactionLine
......@@ -56,5 +57,5 @@ class PaySheetTransactionLine(AccountingTransactionLine):
)
# Declarative interfaces
__implements__ = ( )
zope.interface.implements( )
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Acquisition import aq_base, aq_parent, aq_inner, aq_acquire
from Products.CMFCore.utils import getToolByName
......@@ -51,7 +52,7 @@ class PaymentRule(Rule):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate,
zope.interface.implements( interfaces.IPredicate,
interfaces.IRule )
# Default Properties
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from warnings import warn
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
......@@ -81,7 +82,7 @@ class Predicate(XMLObject, Folder):
)
# Declarative interfaces
__implements__ = ( interfaces.IPredicate, )
zope.interface.implements( interfaces.IPredicate, )
security.declareProtected( Permissions.AccessContentsInformation, 'test' )
def test(self, context, tested_base_category_list=None,
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
......@@ -48,7 +49,7 @@ class ProductionReportCell(DeliveryCell):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
......@@ -58,7 +59,7 @@ class ProductionReportLine(DeliveryLine):
)
# Declarative interfaces
__implements__ = ( )
zope.interface.implements( )
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent')
def newCellContent(self, id, portal_type='Production Report Cell', **kw):
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
......@@ -66,5 +67,5 @@ class ProjectReport(Delivery):
)
# Declarative Interface
__implements__ = ( )
zope.interface.implements( )
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type.XMLObject import XMLObject
......@@ -50,7 +51,7 @@ class PropertyDivergenceTester(XMLObject):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IDivergenceTester, )
zope.interface.implements( interfaces.IDivergenceTester, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type.DivergenceMessage import DivergenceMessage
......@@ -50,7 +51,7 @@ class QuantityDivergenceTester(PropertyDivergenceTester):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IDivergenceTester, )
zope.interface.implements( interfaces.IDivergenceTester, )
# Declarative properties
......
......@@ -27,6 +27,7 @@
#
##############################################################################
import zope.interface
from math import log
from warnings import warn
......@@ -58,7 +59,7 @@ class Resource(XMLMatrix, Variated):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.CMFCore.utils import getToolByName
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
......@@ -73,7 +74,7 @@ class Rule(Predicate, XMLObject):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate,
zope.interface.implements( interfaces.IPredicate,
interfaces.IRule )
# Default Properties
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
from Products.CMFCore.utils import getToolByName
......@@ -101,7 +102,7 @@ class SimulationMovement(Movement):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
......@@ -47,7 +48,7 @@ class SubscriptionItem(Item):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = (interfaces.IExpandable, interfaces.IOpenOrderExpander)
zope.interface.implements(interfaces.IExpandable, interfaces.IOpenOrderExpander)
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
......@@ -54,7 +55,7 @@ class SupplyCell(Predicate, DeliveryCell, Path):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -27,6 +27,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5Type.XMLMatrix import XMLMatrix
......@@ -52,7 +53,7 @@ class SupplyLine(DeliveryLine, Path):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated,
zope.interface.implements( interfaces.IVariated,
interfaces.IPredicate )
# Declarative properties
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
......@@ -44,7 +45,7 @@ class TaxLine(DeliveryLine):
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -27,6 +27,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.Rule import Rule
......@@ -43,7 +44,7 @@ class TaxRule(DeliveryRule):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate,
zope.interface.implements( interfaces.IPredicate,
interfaces.IRule )
# Default Properties
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from AccessControl.ZopeGuards import guarded_getattr
from AccessControl import ClassSecurityInfo
from zLOG import LOG, WARNING
......@@ -92,7 +93,7 @@ class TextDocument(Document, TextContent):
)
# Declarative interfaces
__implements__ = ()
zope.interface.implements()
# Explicit inheritance
security.declareProtected(Permissions.ModifyPortalContent, 'PUT')
......
......@@ -27,6 +27,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.TransformationRule import TransformationRule
......@@ -48,7 +49,7 @@ class TradeModelRule(TransformationRule):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate,
zope.interface.implements( interfaces.IPredicate,
interfaces.IRule )
# Default Properties
......
......@@ -30,6 +30,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, interfaces
......
......@@ -28,6 +28,7 @@
#
##############################################################################
import zope.interface
from ExtensionClass import Base
from AccessControl import ClassSecurityInfo
from Acquisition import aq_base, aq_parent, aq_inner, aq_acquire
......@@ -212,7 +213,7 @@ class TransformationRule(TransformationRuleMixin, Rule):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate,
zope.interface.implements( interfaces.IPredicate,
interfaces.IRule )
# Default Properties
property_sheets = ( PropertySheet.Base
......
......@@ -27,6 +27,7 @@
#
##############################################################################
import zope.interface
from AccessControl import ClassSecurityInfo
from Acquisition import aq_base, aq_parent, aq_inner, aq_acquire
from Products.CMFCore.utils import getToolByName
......@@ -60,7 +61,7 @@ class TransformationSourcingRule(TransformationRuleMixin, Rule):
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
__implements__ = ( interfaces.IPredicate,
zope.interface.implements( interfaces.IPredicate,
interfaces.IRule )
# Default Properties
property_sheets = ( PropertySheet.Base
......
......@@ -26,6 +26,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import zope.interface
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
......@@ -77,7 +78,7 @@ class TransformedResource(Predicate, XMLObject, XMLMatrix, Amount):
)
# Declarative interfaces
__implements__ = ( interfaces.IVariated
zope.interface.implements( interfaces.IVariated
, interfaces.ITransformation
)
......
......@@ -26,6 +26,7 @@
#
##############################################################################
import zope.interface
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
......@@ -65,7 +66,7 @@ class VariatedProperty(XMLObject, XMLMatrix):
)
# Declarative interfaces
__implements__ = ( interfaces.IVariated, )
zope.interface.implements( interfaces.IVariated, )
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' )
def newCellContent(self, id, portal_type='Set Mapped Value', **kw):
......
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