Commit bee7348e authored by Kevin Deldycke's avatar Kevin Deldycke

Better properties acquisition on Careers


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3571 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 08f99fc8
############################################################################# #############################################################################
# #
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved. # Copyright (c) 2002-2005 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solanes <jp@nexedi.com> # Jean-Paul Smets-Solanes <jp@nexedi.com>
# Kevin Deldycke <kevin_AT_nexedi_DOT_com>
# #
# WARNING: This program as such is intended to be used by professional # WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential # programmers who take the whole responsability of assessing all potential
...@@ -33,115 +34,127 @@ class Person: ...@@ -33,115 +34,127 @@ class Person:
""" """
_properties = ( _properties = (
# Personal properties # Personnal properties
{ 'id' : 'first_name', { 'id' : 'first_name'
'description' : '', , 'description': ''
'type' : 'string', , 'type' : 'string'
'mode' : 'w' }, , 'mode' : 'w'
{ 'id' : 'last_name', },
'description' : '', { 'id' : 'last_name'
'type' : 'string', , 'description': ''
'mode' : 'w' }, , 'type' : 'string'
{ 'id' : 'middle_name', , 'mode' : 'w'
'description' : '', },
'type' : 'string', { 'id' : 'middle_name'
'mode' : 'w' }, , 'description': ''
{ 'id' : 'prefix', , 'type' : 'string'
'description' : '', , 'mode' : 'w'
'type' : 'string', },
'mode' : 'w' }, { 'id' : 'prefix'
{ 'id' : 'suffix', , 'description': ''
'description' : '', , 'type' : 'string'
'type' : 'string', , 'mode' : 'w'
'mode' : 'w' }, },
{ 'id' : 'birthday', { 'id' : 'suffix'
'description' : '', , 'description': ''
'type' : 'date', , 'type' : 'string'
'mode' : 'w' }, , 'mode' : 'w'
{ 'id' : 'social_code', },
'description' : 'The social code of this person', { 'id' : 'birthday'
'type' : 'string', , 'description': ''
'mode' : 'w' }, , 'type' : 'date'
{ 'id' : 'partner_count', , 'mode' : 'w'
'description' : '', },
'type' : 'int', { 'id' : 'social_code'
'mode' : 'w' }, , 'description': 'The social code of this person'
{ 'id' : 'child_count', , 'type' : 'string'
'description' : '', , 'mode' : 'w'
'type' : 'int', },
'mode' : 'w' }, { 'id' : 'partner_count'
, 'description': ''
# Compatibility with early releases , 'type' : 'int'
, 'mode' : 'w'
},
{ 'id' : 'child_count'
, 'description': ''
, 'type' : 'int'
, 'mode' : 'w'
},
# Contact fields # Contact fields
{ 'id' : 'address', { 'id' : 'address'
'storage_id' : 'default_address', , 'storage_id' : 'default_address'
'description' : 'The current address of the person', , 'description' : 'The current address of the person'
'type' : 'content', , 'type' : 'content'
'portal_type' : ('Address'), , 'portal_type' : ( 'Address', )
'acquisition_base_category' : ('subordination', ), , 'acquisition_base_category': ( 'subordination', )
'acquisition_portal_type' : ('Organisation',), , 'acquisition_portal_type' : ( 'Organisation', )
'acquisition_copy_value' : 0, , 'acquisition_copy_value' : 0
'acquisition_mask_value' : 1, , 'acquisition_mask_value' : 1
'acquisition_sync_value' : 0, , 'acquisition_sync_value' : 0
'acquisition_accessor_id' : 'getDefaultAddressValue', , 'acquisition_accessor_id' : 'getDefaultAddressValue'
'acquisition_depends' : None, , 'acquisition_depends' : None
'alt_accessor_id' : ('getCareerDefaultAddressValue',), , 'alt_accessor_id' : ( 'getCareerDefaultAddressValue', )
'mode' : 'w' }, , 'mode' : 'w'
{ 'id' : 'telephone', },
'storage_id' : 'default_telephone', { 'id' : 'telephone'
'description' : 'The current telephone of the person', , 'storage_id' : 'default_telephone'
'type' : 'content', , 'description' : 'The current telephone of the person'
'portal_type' : ('Telephone'), , 'type' : 'content'
'acquisition_base_category' : ('subordination', ), , 'portal_type' : ( 'Telephone', )
'acquisition_portal_type' : ('Organisation',), , 'acquisition_base_category': ( 'subordination', )
'acquisition_copy_value' : 0, , 'acquisition_portal_type' : ( 'Organisation', )
'acquisition_mask_value' : 1, , 'acquisition_copy_value' : 0
'acquisition_sync_value' : 0, , 'acquisition_mask_value' : 1
'acquisition_accessor_id' : 'getDefaultTelephoneValue', , 'acquisition_sync_value' : 0
'acquisition_depends' : None, , 'acquisition_accessor_id' : 'getDefaultTelephoneValue'
'mode' : 'w' }, , 'acquisition_depends' : None
{ 'id' : 'fax', , 'mode' : 'w'
'storage_id' : 'default_fax', },
'description' : 'The current fax of the person', { 'id' : 'fax'
'type' : 'content', , 'storage_id' : 'default_fax'
'portal_type' : ('Fax'), , 'description' : 'The current fax of the person'
'acquisition_base_category' : ('subordination', ), , 'type' : 'content'
'acquisition_portal_type' : ('Organisation',), , 'portal_type' : ( 'Fax', )
'acquisition_copy_value' : 0, , 'acquisition_base_category': ( 'subordination', )
'acquisition_mask_value' : 1, , 'acquisition_portal_type' : ( 'Organisation', )
'acquisition_sync_value' : 0, , 'acquisition_copy_value' : 0
'acquisition_accessor_id' : 'getDefaultFaxValue', , 'acquisition_mask_value' : 1
'acquisition_depends' : None, , 'acquisition_sync_value' : 0
'mode' : 'w' }, , 'acquisition_accessor_id' : 'getDefaultFaxValue'
{ 'id' : 'email', , 'acquisition_depends' : None
'storage_id' : 'default_email', , 'mode' : 'w'
'description' : 'The current email of the person', },
'type' : 'content', { 'id' : 'email'
'portal_type' : ('Email'), , 'storage_id' : 'default_email'
'acquisition_base_category' : ('subordination', ), , 'description' : 'The current email of the person'
'acquisition_portal_type' : ('Organisation',), , 'type' : 'content'
'acquisition_copy_value' : 0, , 'portal_type' : ( 'Email', )
'acquisition_mask_value' : 1, , 'acquisition_base_category': ( 'subordination', )
'acquisition_sync_value' : 0, , 'acquisition_portal_type' : ( 'Organisation', )
'acquisition_accessor_id' : 'getDefaultEmailValue', , 'acquisition_copy_value' : 0
'acquisition_depends' : None, , 'acquisition_mask_value' : 1
'mode' : 'w' }, , 'acquisition_sync_value' : 0
# Subordination properties , 'acquisition_accessor_id' : 'getDefaultEmailValue'
{ 'id' : 'career', , 'acquisition_depends' : None
'storage_id' : 'default_career', , 'mode' : 'w'
'description' : 'The current career step of a person.', },
'type' : 'content', { 'id' : 'career'
'portal_type' : ('Career'), , 'storage_id' : 'default_career'
'acquired_property_id' : ('subordination_title', 'subordination', 'value_uids', , 'description' : 'The current career step of a person.'
'subordination_uid_list', , 'type' : 'content'
'grade', 'skill_list', 'role','function', , 'portal_type' : ( 'Career', )
), , 'acquired_property_id': ( 'title', 'description'
'mode' : 'w' }, , 'start_date', 'stop_date'
, 'subordination', 'subordination_title', 'subordination_value'
, 'subordination_uid_list'
, 'grade', 'skill_list', 'role', 'function'
, 'collective_agreement_title', 'salary_coefficient', 'salary_level'
)
, 'mode' : 'w'
},
) )
_categories = ( 'region', 'gender', 'product_line', 'subordination', 'nationality', 'marital_status', _categories = ( 'region', 'gender', 'product_line', 'nationality', 'marital_status'
# Acquired Categories via Career
'grade', 'role',
# Virtual Categories # Virtual Categories
'source_region', 'destination_region', ) , 'source_region', 'destination_region' # What is the purpose of these two categories ?
)
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