Commit f4a74838 authored by Kevin Deldycke's avatar Kevin Deldycke

setters are useless without getters...


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2698 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d32ac0a0
...@@ -259,6 +259,26 @@ etc.).""" ...@@ -259,6 +259,26 @@ etc.)."""
except: except:
return '' return ''
security.declareProtected(Permissions.View, 'getDefaultCareerGrade')
def getDefaultCareerGrade(self):
"""
Returns the default career grade
"""
try:
return self.getDefaultCareerValue().getGrade()
except:
return ''
security.declareProtected(Permissions.View, 'getDefaultCareerRole')
def getDefaultCareerRole(self):
"""
Returns the default career role
"""
try:
return self.getDefaultCareerValue().getRole()
except:
return ''
security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultCareerTitle') security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultCareerTitle')
def setDefaultCareerTitle(self, value): def setDefaultCareerTitle(self, value):
""" """
......
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