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,9 +30,8 @@ ...@@ -30,9 +30,8 @@
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.
""" """
......
...@@ -28,16 +28,15 @@ ...@@ -28,16 +28,15 @@
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5.Core.Node import Node
from Products.ERP5.Document.Image import Image
from Products.ERP5.Document.Entity import Entity
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.Utils import assertAttributePortalType from Products.ERP5Type.Utils import assertAttributePortalType
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5.Core.Node import Node
from Products.ERP5.Document.Entity import Entity
class Person(Entity, Node, Image, XMLObject):
class Person(Entity, Node, XMLObject):
""" """
An Person object holds the information about An Person object holds the information about
an person (ex. you, me, someone in the company, an person (ex. you, me, someone in the company,
...@@ -71,57 +70,6 @@ class Person(Entity, Node, XMLObject): ...@@ -71,57 +70,6 @@ class Person(Entity, Node, XMLObject):
, PropertySheet.DublinCore , PropertySheet.DublinCore
, PropertySheet.Person) , PropertySheet.Person)
# Factory Type Information
factory_type_information = \
{ 'id' : portal_type
, 'meta_type' : meta_type
, 'description' : """\
An Person object holds the information about
an person (ex. you, me, someone in the company,
someone outside of the company, a member of the portal,
etc.)."""
, 'icon' : 'person_icon.gif'
, 'product' : 'ERP5'
, 'factory' : 'addPerson'
, 'immediate_view' : 'person_edit'
, 'allow_discussion' : 1
, 'allowed_content_types': ('Assignment', 'Telephone', 'Fax', 'Bank Account',
'Geographic Address', 'Career'
)
, 'filter_content_types' : 1
, 'global_allow' : 1
, 'actions' :
( { 'id' : 'view'
, 'name' : 'View'
, 'category' : 'object_view'
, 'action' : 'person_edit'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'print'
, 'name' : 'Print'
, 'category' : 'object_print'
, 'action' : 'person_print'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'metadata'
, 'name' : 'Metadata'
, 'category' : 'object_edit'
, 'action' : 'metadata_edit'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'translate'
, 'name' : 'Translate'
, 'category' : 'object_action'
, 'action' : 'translation_template_view'
, 'permissions' : (
Permissions.TranslateContent, )
}
)
}
def _setTitle(self, value): def _setTitle(self, value):
""" """
Here we see that we must define an notion Here we see that we must define an notion
......
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