Commit 4e89e254 authored by Jérome Perrin's avatar Jérome Perrin

Add Default Career accessors with 'default_career' prefix (eg.

getDefaultCareerTitle) for consistency with default address, telephone,
etc.

Mark old accessors like "getCareerTitle" as deprecated.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5750 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 72abe0a2
......@@ -148,11 +148,29 @@ class Person:
, 'acquisition_depends' : None
, 'mode' : 'w'
},
# Using an empty id generate automaticality getSubordination() and setSubordination()
# methods on Person. These methods allow us to save subordination on the default career.
{ 'id' : 'default_career'
, 'storage_id' : 'default_career'
, 'description' : 'The default career hold some properties of a Person.'
, 'type' : 'content'
, 'portal_type' : ( 'Career', )
, 'acquired_property_id': ( 'start_date', 'stop_date', 'title', 'description'
, 'subordination', 'subordination_title', 'subordination_value'
, 'subordination_uid_list', 'subordination_uid'
, 'collective_agreement_title', 'salary_coefficient'
, 'skill_list', 'skill_id_list', 'skill_title_list', 'skill_value_list'
, 'salary_level', 'salary_level_id', 'salary_level_title', 'salary_level_value'
, 'grade', 'grade_id', 'grade_title', 'grade_value'
, 'role', 'role_id', 'role_title', 'role_value'
, 'function', 'function_id', 'function_title', 'function_value'
)
, 'deprecated' : 1
, 'mode' : 'w'
},
# Career accessors like getCareerTitle ... are deprecated, instead
# we should use getDefaultCareerTitle
{ 'id' : 'career'
, 'storage_id' : 'default_career'
, 'description' : 'The default career hold some important properties of a Person.'
, 'description' : 'The default career hold some properties of a Person.'
, 'type' : 'content'
, 'portal_type' : ( 'Career', )
, 'acquired_property_id': ( 'start_date', 'stop_date', 'title', 'description'
......@@ -165,6 +183,7 @@ class Person:
, 'role', 'role_id', 'role_title', 'role_value'
, 'function', 'function_id', 'function_title', 'function_value'
)
, 'deprecated' : 1
, 'mode' : 'w'
},
)
......
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