Commit 96a57411 authored by Jérome Perrin's avatar Jérome Perrin

generate accessors for default skill title and default skill value


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21378 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3e09bb5b
...@@ -196,7 +196,9 @@ class Person: ...@@ -196,7 +196,9 @@ class Person:
, 'subordination', 'subordination_title', 'subordination_value' , 'subordination', 'subordination_title', 'subordination_value'
, 'subordination_uid_list', 'subordination_uid' , 'subordination_uid_list', 'subordination_uid'
, 'collective_agreement_title', 'salary_coefficient' , 'collective_agreement_title', 'salary_coefficient'
, 'skill', 'skill_list', 'skill_id_list', 'skill_title_list', 'skill_value_list' , 'skill', 'skill_list', 'skill_id_list'
, 'skill_title_list', 'skill_value_list'
, 'skill_title', 'skill_value'
, 'salary_level', 'salary_level_id', 'salary_level_title', 'salary_level_value' , 'salary_level', 'salary_level_id', 'salary_level_title', 'salary_level_value'
, 'grade', 'grade_id', 'grade_title', 'grade_value' , 'grade', 'grade_id', 'grade_title', 'grade_value'
, 'activity', 'activity_id', 'activity_title', 'activity_value' , 'activity', 'activity_id', 'activity_title', 'activity_value'
......
...@@ -587,10 +587,13 @@ class TestERP5Base(ERP5TypeTestCase): ...@@ -587,10 +587,13 @@ class TestERP5Base(ERP5TypeTestCase):
self.assertEquals(person.getCareerSkillList() , skill_path_list) self.assertEquals(person.getCareerSkillList() , skill_path_list)
self.assertEquals(person.getCareerSkillTitleList(), skill_title_list) self.assertEquals(person.getCareerSkillTitleList(), skill_title_list)
self.assertEquals(person.getCareerSkillValueList(), skill_object_list) self.assertEquals(person.getCareerSkillValueList(), skill_object_list)
self.assertEquals(person.getCareerSkillTitle(), skill_title_list[0])
self.assertEquals(person.getCareerSkillValue(), skill_object_list[0])
# skill must be acquired on person # skill must be acquired on person
person.reindexObject(); get_transaction().commit(); self.tic() person.reindexObject(); get_transaction().commit(); self.tic()
for skill_object in skill_object_list: for skill_object in skill_object_list:
self.failUnless(person in skill_object.getSkillRelatedValueList()) self.failUnless(person in skill_object.getSkillRelatedValueList())
self.assertEquals(person.getSkillValue(), skill_object_list[0])
def stepCheckPersonCareer(self, sequence=None, sequence_list=None, **kw): def stepCheckPersonCareer(self, sequence=None, sequence_list=None, **kw):
""" """
......
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