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 @@ ...@@ -30,27 +30,26 @@
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5.Document.Image import Image
class Agent(Image, XMLObject): class Agent(XMLObject):
""" """
An Agent is a Person who is permitted to perform some actions on the bank account according to Privileges. An Agent is a Person who is permitted to perform some actions on the bank account according to Privileges.
""" """
# CMF Type Definition # CMF Type Definition
meta_type = 'ERP5 Agent' meta_type = 'ERP5 Agent'
portal_type = 'Agent' portal_type = 'Agent'
isPortalContent = 1 isPortalContent = 1
isRADContent = 1 isRADContent = 1
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.View)
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject , PropertySheet.XMLObject
, PropertySheet.CategoryCore , PropertySheet.CategoryCore
, PropertySheet.DublinCore , PropertySheet.DublinCore
, PropertySheet.Task , PropertySheet.Task
, PropertySheet.Agent , 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