Commit 212d0fed authored by Jérome Perrin's avatar Jérome Perrin

change __implements__ to be a tuple


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27483 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c3e7f6f
...@@ -61,7 +61,7 @@ class Amount(Base, Variated): ...@@ -61,7 +61,7 @@ class Amount(Base, Variated):
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = (interfaces.IVariated) __implements__ = (interfaces.IVariated,)
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
......
...@@ -68,7 +68,7 @@ class BankAccount(Folder, Coordinate, MetaNode): ...@@ -68,7 +68,7 @@ class BankAccount(Folder, Coordinate, MetaNode):
) )
# Declarative interfaces # Declarative interfaces
__implements__ = ( interfaces.ICoordinate ) __implements__ = ( interfaces.ICoordinate, )
security.declareProtected(Permissions.AccessContentsInformation, 'getReference') security.declareProtected(Permissions.AccessContentsInformation, 'getReference')
......
...@@ -80,7 +80,7 @@ class Coordinate(Base): ...@@ -80,7 +80,7 @@ class Coordinate(Base):
isRADContent = 1 isRADContent = 1
# Declarative interface # Declarative interface
__implements__ = (interfaces.ICoordinate) __implements__ = (interfaces.ICoordinate, )
# Declarative security (replaces __ac_permissions__) # Declarative security (replaces __ac_permissions__)
security = ClassSecurityInfo() security = ClassSecurityInfo()
......
...@@ -65,7 +65,7 @@ class GeographicAddress(Coordinate, Base): ...@@ -65,7 +65,7 @@ class GeographicAddress(Coordinate, Base):
) )
# Declarative interfaces # Declarative interfaces
__implements__ = ( interfaces.ICoordinate ) __implements__ = ( interfaces.ICoordinate, )
security.declareProtected(Permissions.AccessContentsInformation, 'asText') security.declareProtected(Permissions.AccessContentsInformation, 'asText')
def asText(self): def asText(self):
......
...@@ -58,7 +58,7 @@ class Path(MappedValue): ...@@ -58,7 +58,7 @@ class Path(MappedValue):
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( interfaces.IPredicate ) __implements__ = ( interfaces.IPredicate, )
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -81,7 +81,7 @@ class Predicate(XMLObject, Folder): ...@@ -81,7 +81,7 @@ class Predicate(XMLObject, Folder):
) )
# Declarative interfaces # Declarative interfaces
__implements__ = ( interfaces.IPredicate ) __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,
......
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