Commit 956f9985 authored by Alexandre Boeglin's avatar Alexandre Boeglin

As proposed by JP, Documents should be protected by AccessContentsInformation,

  instead of View.

(I ran some of the unit tests before comitting, and they reported no error)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5085 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f73e052c
...@@ -70,7 +70,7 @@ class Account(MetaNode, XMLObject): ...@@ -70,7 +70,7 @@ class Account(MetaNode, XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -67,4 +67,4 @@ An AccountingRuleCell object allows to add SaleInvoiceTransactionLines into a Ma ...@@ -67,4 +67,4 @@ An AccountingRuleCell object allows to add SaleInvoiceTransactionLines into a Ma
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
...@@ -49,7 +49,7 @@ class AccountingTransaction(Delivery): ...@@ -49,7 +49,7 @@ class AccountingTransaction(Delivery):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -47,7 +47,7 @@ class AccountingTransactionLine(DeliveryLine): ...@@ -47,7 +47,7 @@ class AccountingTransactionLine(DeliveryLine):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -46,7 +46,7 @@ class Agent(Folder, Image, XMLObject): ...@@ -46,7 +46,7 @@ class Agent(Folder, Image, XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -45,7 +45,7 @@ class AgentPrivilege(XMLObject): ...@@ -45,7 +45,7 @@ class AgentPrivilege(XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -59,7 +59,7 @@ class Alarm(Periodicity, XMLObject): ...@@ -59,7 +59,7 @@ class Alarm(Periodicity, XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -53,7 +53,7 @@ class AmortisationRule(Rule): ...@@ -53,7 +53,7 @@ class AmortisationRule(Rule):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -58,7 +58,7 @@ class Amount(Base, Variated): ...@@ -58,7 +58,7 @@ class Amount(Base, Variated):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = (Interface.Variated) __implements__ = (Interface.Variated)
......
...@@ -61,7 +61,7 @@ class AmountFilter(MappedValue, Amount): ...@@ -61,7 +61,7 @@ class AmountFilter(MappedValue, Amount):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -59,7 +59,7 @@ class AppliedRule(XMLObject): ...@@ -59,7 +59,7 @@ class AppliedRule(XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -43,7 +43,7 @@ class Assignment(Path): ...@@ -43,7 +43,7 @@ class Assignment(Path):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -120,7 +120,7 @@ class AssortedResource(TransformedResource): ...@@ -120,7 +120,7 @@ class AssortedResource(TransformedResource):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -54,7 +54,7 @@ class BankAccount(Folder, Coordinate): ...@@ -54,7 +54,7 @@ class BankAccount(Folder, Coordinate):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -49,7 +49,7 @@ class BaseCategory(CMFBaseCategory, XMLObject): ...@@ -49,7 +49,7 @@ class BaseCategory(CMFBaseCategory, XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -49,6 +49,6 @@ class BaseDomain(Domain): ...@@ -49,6 +49,6 @@ class BaseDomain(Domain):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
...@@ -45,7 +45,7 @@ class Binder(Folder, Document): ...@@ -45,7 +45,7 @@ class Binder(Folder, Document):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -57,4 +57,4 @@ class Bug( Folder ): ...@@ -57,4 +57,4 @@ class Bug( Folder ):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
...@@ -3126,7 +3126,7 @@ class BusinessTemplate(XMLObject): ...@@ -3126,7 +3126,7 @@ class BusinessTemplate(XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -43,7 +43,7 @@ class Capacity(XMLObject): ...@@ -43,7 +43,7 @@ class Capacity(XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
security.declareProtected(Permissions.AccessContentsInformation, 'asCapacityItemList') security.declareProtected(Permissions.AccessContentsInformation, 'asCapacityItemList')
def asCapacityItemList(self): def asCapacityItemList(self):
......
...@@ -43,7 +43,7 @@ class Career(Path): ...@@ -43,7 +43,7 @@ class Career(Path):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -49,7 +49,7 @@ class Consumption(XMLObject, XMLMatrix, Variated): ...@@ -49,7 +49,7 @@ class Consumption(XMLObject, XMLMatrix, Variated):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -57,7 +57,7 @@ class Container(Movement, XMLObject): ...@@ -57,7 +57,7 @@ class Container(Movement, XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -48,7 +48,7 @@ class ContainerCell(DeliveryCell): ...@@ -48,7 +48,7 @@ class ContainerCell(DeliveryCell):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -51,7 +51,7 @@ class ContainerLine(DeliveryLine): ...@@ -51,7 +51,7 @@ class ContainerLine(DeliveryLine):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -81,7 +81,7 @@ class Coordinate(Base): ...@@ -81,7 +81,7 @@ class Coordinate(Base):
# Declarative security (replaces __ac_permissions__) # Declarative security (replaces __ac_permissions__)
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -46,7 +46,7 @@ class Currency(Resource): ...@@ -46,7 +46,7 @@ class Currency(Resource):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -55,7 +55,7 @@ class Delivery(XMLObject): ...@@ -55,7 +55,7 @@ class Delivery(XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -83,7 +83,7 @@ class DeliveryBuilder(OrderBuilder): ...@@ -83,7 +83,7 @@ class DeliveryBuilder(OrderBuilder):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -53,7 +53,7 @@ class DeliveryCell(MappedValue, Movement): ...@@ -53,7 +53,7 @@ class DeliveryCell(MappedValue, Movement):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -55,7 +55,7 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated): ...@@ -55,7 +55,7 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -46,7 +46,7 @@ class DeliveryRule(Rule): ...@@ -46,7 +46,7 @@ class DeliveryRule(Rule):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -46,7 +46,7 @@ class DependentCapacity(Capacity): ...@@ -46,7 +46,7 @@ class DependentCapacity(Capacity):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -45,7 +45,7 @@ class Device(Item): ...@@ -45,7 +45,7 @@ class Device(Item):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -43,7 +43,7 @@ class Discount(XMLObject): ...@@ -43,7 +43,7 @@ class Discount(XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -62,7 +62,7 @@ class Document(XMLObject, TextContent): ...@@ -62,7 +62,7 @@ class Document(XMLObject, TextContent):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -72,7 +72,7 @@ class Domain(Predicate, MetaNode, MetaResource): ...@@ -72,7 +72,7 @@ class Domain(Predicate, MetaNode, MetaResource):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Predicate, ) __implements__ = ( Interface.Predicate, )
...@@ -50,7 +50,7 @@ class Entity: ...@@ -50,7 +50,7 @@ class Entity:
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
security.declareProtected(Permissions.View, 'getDefaultAddressText') security.declareProtected(Permissions.View, 'getDefaultAddressText')
def getDefaultAddressText(self): def getDefaultAddressText(self):
......
...@@ -53,7 +53,7 @@ class Event(Document): ...@@ -53,7 +53,7 @@ class Event(Document):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -57,7 +57,7 @@ class File(Base, CMFFile): ...@@ -57,7 +57,7 @@ class File(Base, CMFFile):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default global values # Default global values
content_type = '' # Required for WebDAV support (default value) content_type = '' # Required for WebDAV support (default value)
......
...@@ -55,7 +55,7 @@ class GeographicAddress(Coordinate, Base): ...@@ -55,7 +55,7 @@ class GeographicAddress(Coordinate, Base):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -54,7 +54,7 @@ class Image (Base, Photo): ...@@ -54,7 +54,7 @@ class Image (Base, Photo):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -58,7 +58,7 @@ class Immobilisation(Movement, XMLObject): ...@@ -58,7 +58,7 @@ class Immobilisation(Movement, XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -46,7 +46,7 @@ class IndependentCapacity(Capacity): ...@@ -46,7 +46,7 @@ class IndependentCapacity(Capacity):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -45,7 +45,7 @@ class Inventory(Delivery): ...@@ -45,7 +45,7 @@ class Inventory(Delivery):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -49,7 +49,7 @@ class InventoryCell(DeliveryCell): ...@@ -49,7 +49,7 @@ class InventoryCell(DeliveryCell):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -49,7 +49,7 @@ class InventoryLine(DeliveryLine): ...@@ -49,7 +49,7 @@ class InventoryLine(DeliveryLine):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -42,7 +42,7 @@ class Invoice(AccountingTransaction): ...@@ -42,7 +42,7 @@ class Invoice(AccountingTransaction):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -50,7 +50,7 @@ class InvoiceCell(DeliveryCell): ...@@ -50,7 +50,7 @@ class InvoiceCell(DeliveryCell):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -53,7 +53,7 @@ class InvoiceLine(DeliveryLine): ...@@ -53,7 +53,7 @@ class InvoiceLine(DeliveryLine):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -49,7 +49,7 @@ class InvoiceRule(DeliveryRule): ...@@ -49,7 +49,7 @@ class InvoiceRule(DeliveryRule):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -52,7 +52,7 @@ class InvoiceTransactionRule(Rule, PredicateMatrix): ...@@ -52,7 +52,7 @@ class InvoiceTransactionRule(Rule, PredicateMatrix):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -50,7 +50,7 @@ class InvoicingRule(Rule): ...@@ -50,7 +50,7 @@ class InvoicingRule(Rule):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -63,7 +63,7 @@ class Item(XMLObject, Amount): ...@@ -63,7 +63,7 @@ class Item(XMLObject, Amount):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -52,7 +52,7 @@ class MailMessage(XMLObject, Event, MailMessage): ...@@ -52,7 +52,7 @@ class MailMessage(XMLObject, Event, MailMessage):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -63,7 +63,7 @@ class MappedValue(Predicate, Amount): ...@@ -63,7 +63,7 @@ class MappedValue(Predicate, Amount):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Predicate, Interface.Variated,) __implements__ = ( Interface.Predicate, Interface.Variated,)
......
...@@ -47,7 +47,7 @@ class MetaNode(Node, CoreMetaNode): ...@@ -47,7 +47,7 @@ class MetaNode(Node, CoreMetaNode):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -45,7 +45,7 @@ class MetaResource(Resource, CoreMetaResource): ...@@ -45,7 +45,7 @@ class MetaResource(Resource, CoreMetaResource):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -197,7 +197,7 @@ class Movement(XMLObject, Amount): ...@@ -197,7 +197,7 @@ class Movement(XMLObject, Amount):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -46,7 +46,7 @@ class Order(Delivery): ...@@ -46,7 +46,7 @@ class Order(Delivery):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -78,7 +78,7 @@ class OrderBuilder(XMLObject, Amount, Predicate): ...@@ -78,7 +78,7 @@ class OrderBuilder(XMLObject, Amount, Predicate):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -43,7 +43,7 @@ class OrderLine(DeliveryLine): ...@@ -43,7 +43,7 @@ class OrderLine(DeliveryLine):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -47,7 +47,7 @@ class OrderRule(DeliveryRule): ...@@ -47,7 +47,7 @@ class OrderRule(DeliveryRule):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -58,7 +58,7 @@ class Organisation(Entity, MetaNode, XMLObject): ...@@ -58,7 +58,7 @@ class Organisation(Entity, MetaNode, XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -68,7 +68,7 @@ class PackingList(Delivery): ...@@ -68,7 +68,7 @@ class PackingList(Delivery):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -55,7 +55,7 @@ class Path(MappedValue): ...@@ -55,7 +55,7 @@ class Path(MappedValue):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Predicate ) __implements__ = ( Interface.Predicate )
......
...@@ -51,7 +51,7 @@ class PaySheetCell(InvoiceCell): ...@@ -51,7 +51,7 @@ class PaySheetCell(InvoiceCell):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -52,7 +52,7 @@ class PaySheetLine(InvoiceLine): ...@@ -52,7 +52,7 @@ class PaySheetLine(InvoiceLine):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -44,7 +44,7 @@ class PaySheetTransaction(Invoice): ...@@ -44,7 +44,7 @@ class PaySheetTransaction(Invoice):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Global variables # Global variables
_transaction_line_portal_type = 'Pay Sheet Transaction Line' _transaction_line_portal_type = 'Pay Sheet Transaction Line'
......
...@@ -49,7 +49,7 @@ class PaySheetTransactionLine(AccountingTransactionLine): ...@@ -49,7 +49,7 @@ class PaySheetTransactionLine(AccountingTransactionLine):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -45,7 +45,7 @@ class PaymentCondition(XMLObject): ...@@ -45,7 +45,7 @@ class PaymentCondition(XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -52,7 +52,7 @@ class PaymentRule(Rule): ...@@ -52,7 +52,7 @@ class PaymentRule(Rule):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -58,7 +58,7 @@ class Periodicity(Base): ...@@ -58,7 +58,7 @@ class Periodicity(Base):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -63,7 +63,7 @@ class Person(Entity, Node, XMLObject): ...@@ -63,7 +63,7 @@ class Person(Entity, Node, XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -48,7 +48,7 @@ class PortalTest(MappedValue, XMLMatrix): ...@@ -48,7 +48,7 @@ class PortalTest(MappedValue, XMLMatrix):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -66,7 +66,7 @@ class Predicate(Folder): ...@@ -66,7 +66,7 @@ class Predicate(Folder):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -48,7 +48,7 @@ class Pricing(MappedValue, XMLMatrix): ...@@ -48,7 +48,7 @@ class Pricing(MappedValue, XMLMatrix):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -47,7 +47,7 @@ class ProductionOrderRule(OrderRule): ...@@ -47,7 +47,7 @@ class ProductionOrderRule(OrderRule):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -45,7 +45,7 @@ class ProductionReport(Delivery): ...@@ -45,7 +45,7 @@ class ProductionReport(Delivery):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -45,7 +45,7 @@ class ProductionReportCell(DeliveryCell): ...@@ -45,7 +45,7 @@ class ProductionReportCell(DeliveryCell):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -42,7 +42,7 @@ class ProductionReportLine(DeliveryLine): ...@@ -42,7 +42,7 @@ class ProductionReportLine(DeliveryLine):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -49,7 +49,7 @@ class Project(Order): ...@@ -49,7 +49,7 @@ class Project(Order):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( property_sheets = (
......
...@@ -53,7 +53,7 @@ class ProjectReport(Delivery): ...@@ -53,7 +53,7 @@ class ProjectReport(Delivery):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( property_sheets = (
......
...@@ -55,7 +55,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -55,7 +55,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -70,7 +70,7 @@ class Rule(XMLObject, Predicate): ...@@ -70,7 +70,7 @@ class Rule(XMLObject, Predicate):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -56,7 +56,7 @@ class SaleOpportunity(MetaNode, XMLObject): ...@@ -56,7 +56,7 @@ class SaleOpportunity(MetaNode, XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -48,7 +48,7 @@ class SetPricing(MappedValue, XMLMatrix): ...@@ -48,7 +48,7 @@ class SetPricing(MappedValue, XMLMatrix):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -95,7 +95,7 @@ class SimulationMovement(Movement): ...@@ -95,7 +95,7 @@ class SimulationMovement(Movement):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -44,7 +44,7 @@ class Supply(Path,XMLObject): ...@@ -44,7 +44,7 @@ class Supply(Path,XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -51,7 +51,7 @@ class SupplyCell(Predicate, DeliveryCell, Path): ...@@ -51,7 +51,7 @@ class SupplyCell(Predicate, DeliveryCell, Path):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -48,7 +48,7 @@ class SupplyChain(Path, XMLObject): ...@@ -48,7 +48,7 @@ class SupplyChain(Path, XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -58,7 +58,7 @@ class SupplyLine(DeliveryLine, Path): ...@@ -58,7 +58,7 @@ class SupplyLine(DeliveryLine, Path):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces # Declarative interfaces
__implements__ = ( Interface.Variated, ) __implements__ = ( Interface.Variated, )
......
...@@ -54,7 +54,7 @@ class SupplyLink(Path, XMLObject): ...@@ -54,7 +54,7 @@ class SupplyLink(Path, XMLObject):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -49,7 +49,7 @@ class SupplyRule(MappedValue, XMLMatrix): ...@@ -49,7 +49,7 @@ class SupplyRule(MappedValue, XMLMatrix):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -59,7 +59,7 @@ class Telephone(Coordinate, Base): ...@@ -59,7 +59,7 @@ class Telephone(Coordinate, Base):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) # ??????? security.declareObjectProtected(Permissions.AccessContentsInformation) # ???????
# The standard parser is used to read phone numbers # The standard parser is used to read phone numbers
# written in a standard syntax # written in a standard syntax
......
...@@ -46,7 +46,7 @@ class TradeCondition(Path): ...@@ -46,7 +46,7 @@ class TradeCondition(Path):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -48,7 +48,7 @@ class Transaction(Delivery): ...@@ -48,7 +48,7 @@ class Transaction(Delivery):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -64,7 +64,7 @@ class Transformation(XMLObject, Predicate, Variated): ...@@ -64,7 +64,7 @@ class Transformation(XMLObject, Predicate, Variated):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -50,7 +50,7 @@ class TransformationRule(Rule): ...@@ -50,7 +50,7 @@ class TransformationRule(Rule):
portal_type = 'Transformation Rule' portal_type = 'Transformation Rule'
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject , PropertySheet.XMLObject
......
...@@ -133,7 +133,7 @@ class TransformationSourcingRule(Rule): ...@@ -133,7 +133,7 @@ class TransformationSourcingRule(Rule):
portal_type = 'Transformation Sourcing Rule' portal_type = 'Transformation Sourcing Rule'
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject , PropertySheet.XMLObject
......
...@@ -65,7 +65,7 @@ class TransformedResource(Predicate, XMLObject, XMLMatrix, Amount): ...@@ -65,7 +65,7 @@ class TransformedResource(Predicate, XMLObject, XMLMatrix, Amount):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -47,7 +47,7 @@ class Url(Coordinate, Base): ...@@ -47,7 +47,7 @@ class Url(Coordinate, Base):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -55,7 +55,7 @@ class VariatedProperty(XMLObject, XMLMatrix): ...@@ -55,7 +55,7 @@ class VariatedProperty(XMLObject, XMLMatrix):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -46,7 +46,7 @@ class Variation(XMLObject, Variation): ...@@ -46,7 +46,7 @@ class Variation(XMLObject, Variation):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -43,7 +43,7 @@ class VariationImage(Image, Variation): ...@@ -43,7 +43,7 @@ class VariationImage(Image, Variation):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -58,7 +58,7 @@ class Wiki( Document ): ...@@ -58,7 +58,7 @@ class Wiki( Document ):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Compile regular expressions at load time. # Compile regular expressions at load time.
table_expr = re.compile(r"^\|\|(.+)\|\|$") table_expr = re.compile(r"^\|\|(.+)\|\|$")
......
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