Commit 907c1565 authored by Arnaud Fontaine's avatar Arnaud Fontaine

isDelivery class attribute must be a callable.

parent 6b765217
...@@ -30,15 +30,16 @@ from AccessControl import ClassSecurityInfo ...@@ -30,15 +30,16 @@ 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
from Products.ERP5Type.Base import Base from Products.ERP5Type.Base import Base
from Products.ERP5Type.Accessor.Constant import PropertyGetter as ConstantGetter
class DocumentComponent(Base): class DocumentComponent(Base):
# CMF Type Definition # CMF Type Definition
meta_type = 'ERP5 Document Component' meta_type = 'ERP5 Document Component'
portal_type = 'Document Component' portal_type = 'Document Component'
isPortalContent = 1 isPortalContent = 1
isRADContent = 1 isRADContent = 1
isDelivery = 1 isDelivery = ConstantGetter('isDelivery', value=True)
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
......
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