Commit df6d255d authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added more inherited values from career


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@805 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1c1d4175
......@@ -121,6 +121,46 @@ class Entity:
except:
return ''
security.declareProtected(Permissions.View, 'getDefaultCareerActivity')
def getDefaultCareerActivity(self):
"""
Returns the default address city as a text string
"""
try:
return self.getDefaultCareerValue().getActivity()
except:
return ''
security.declareProtected(Permissions.View, 'getDefaultCareerFunction')
def getDefaultCareerFunction(self):
"""
Returns the default address city as a text string
"""
try:
return self.getDefaultCareerValue().getFunction()
except:
return ''
security.declareProtected(Permissions.View, 'getDefaultCareerGroup')
def getDefaultCareerGroup(self):
"""
Returns the default address city as a text string
"""
try:
return self.getDefaultCareerValue().getGroup()
except:
return ''
security.declareProtected(Permissions.View, 'getDefaultCareerProductLineList')
def getDefaultCareerProductLineList(self):
"""
Returns the default address city as a text string
"""
try:
return self.getDefaultCareerValue().getProductLineList()
except:
return ''
security.declareProtected(Permissions.View, 'getDefaultCareerSkillList')
def getDefaultCareerSkillList(self):
"""
......@@ -271,6 +311,30 @@ class Entity:
self._setDefaultCareerRole(coordinate)
self.reindexObject()
security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultCareerGroup')
def setDefaultCareerGroup(self, coordinate):
"""
Updates the default address from a standard text string
"""
self._setDefaultCareerGroup(coordinate)
self.reindexObject()
security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultCareerActivity')
def setDefaultCareerActivity(self, coordinate):
"""
Updates the default address from a standard text string
"""
self._setDefaultCareerActivity(coordinate)
self.reindexObject()
security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultCareerFunction')
def setDefaultCareerFunction(self, coordinate):
"""
Updates the default address from a standard text string
"""
self._setDefaultCareerFunction(coordinate)
self.reindexObject()
security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultCareerSkillList')
def setDefaultCareerSkillList(self, coordinate):
"""
......@@ -279,6 +343,14 @@ class Entity:
self._setDefaultCareerSkillList(coordinate)
self.reindexObject()
security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultCareerProductLineList')
def setDefaultCareerProductLineList(self, coordinate):
"""
Updates the default address from a standard text string
"""
self._setDefaultCareerProductLineList(coordinate)
self.reindexObject()
security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultCareerStartDate')
def setDefaultCareerStartDate(self, coordinate):
"""
......@@ -466,6 +538,42 @@ class Entity:
)
self.default_career.setRole(coordinate)
security.declarePrivate('_setDefaultCareerFunction')
def _setDefaultCareerFunction(self, coordinate):
assertAttributePortalType(self, 'default_career', 'Career')
if not hasattr(self,'default_career'):
self.invokeFactory( type_name='Career'
, id='default_career'
)
self.default_career.setFunction(coordinate)
security.declarePrivate('_setDefaultCareerActivity')
def _setDefaultCareerActivity(self, coordinate):
assertAttributePortalType(self, 'default_career', 'Career')
if not hasattr(self,'default_career'):
self.invokeFactory( type_name='Career'
, id='default_career'
)
self.default_career.setActivity(coordinate)
security.declarePrivate('_setDefaultCareerGroup')
def _setDefaultCareerGroup(self, coordinate):
assertAttributePortalType(self, 'default_career', 'Career')
if not hasattr(self,'default_career'):
self.invokeFactory( type_name='Career'
, id='default_career'
)
self.default_career.setGroup(coordinate)
security.declarePrivate('_setDefaultCareerProductLineList')
def _setDefaultCareerProductLineList(self, coordinate):
assertAttributePortalType(self, 'default_career', 'Career')
if not hasattr(self,'default_career'):
self.invokeFactory( type_name='Career'
, id='default_career'
)
self.default_career.setProductLineList(coordinate)
security.declarePrivate('_setDefaultCareerSkillList')
def _setDefaultCareerSkillList(self, coordinate):
assertAttributePortalType(self, 'default_career', 'Career')
......
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