Commit 2091b80f authored by Kevin Deldycke's avatar Kevin Deldycke

In order to add Signature image on persons, Person is now a subclass of Image...

In order to add Signature image on persons, Person is now a subclass of Image and Agent not any longer.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3379 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cf248c99
......@@ -30,27 +30,26 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5.Document.Image import Image
class Agent(Image, XMLObject):
"""
An Agent is a Person who is permitted to perform some actions on the bank account according to Privileges.
"""
# CMF Type Definition
meta_type = 'ERP5 Agent'
portal_type = 'Agent'
isPortalContent = 1
isRADContent = 1
class Agent(XMLObject):
"""
An Agent is a Person who is permitted to perform some actions on the bank account according to Privileges.
"""
# CMF Type Definition
meta_type = 'ERP5 Agent'
portal_type = 'Agent'
isPortalContent = 1
isRADContent = 1
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View)
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View)
# Default Properties
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.Task
, PropertySheet.Agent
)
# Default Properties
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.Task
, PropertySheet.Agent
)
This diff is collapsed.
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