Commit 29f8222f authored by Kevin Deldycke's avatar Kevin Deldycke

Sorry, I made a big mistake


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3380 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2091b80f
......@@ -28,15 +28,16 @@
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.Utils import assertAttributePortalType
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 (ex. you, me, someone in the company,
......@@ -70,6 +71,57 @@ class Person(Entity, Node, Image, XMLObject):
, PropertySheet.DublinCore
, 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):
"""
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