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