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

Added career accessors


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1155 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2f9aa0d1
...@@ -91,6 +91,16 @@ class Entity: ...@@ -91,6 +91,16 @@ class Entity:
except: except:
return '' return ''
security.declareProtected(Permissions.View, 'getDefaultCollectiveAgreementTitle')
def getDefaultCollectiveAgreementTitle(self):
"""
Returns the default address city as a text string
"""
try:
return self.getDefaultCareerValue().getCollectiveAgreementTitle()
except:
return ''
security.declareProtected(Permissions.View, 'getDefaultCareerDestinationTitle') security.declareProtected(Permissions.View, 'getDefaultCareerDestinationTitle')
def getDefaultCareerDestinationTitle(self): def getDefaultCareerDestinationTitle(self):
""" """
...@@ -217,6 +227,14 @@ class Entity: ...@@ -217,6 +227,14 @@ class Entity:
self._setDefaultCareerTitle(coordinate) self._setDefaultCareerTitle(coordinate)
self.reindexObject() self.reindexObject()
security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultCareerCollectiveAgreementTitle')
def setDefaultCareerCollectiveAgreementTitle(self, coordinate):
"""
Updates the default address from a standard text string
"""
self._setDefaultCareerCollectiveAgreementTitle(coordinate)
self.reindexObject()
security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultCareerDescription') security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultCareerDescription')
def setDefaultCareerDescription(self, coordinate): def setDefaultCareerDescription(self, coordinate):
""" """
...@@ -256,7 +274,7 @@ class Entity: ...@@ -256,7 +274,7 @@ class Entity:
""" """
self._setDefaultCareerSalaryCoefficient(coordinate) self._setDefaultCareerSalaryCoefficient(coordinate)
self.reindexObject() self.reindexObject()
security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultAddressText') security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultAddressText')
def setDefaultAddressText(self, coordinate): def setDefaultAddressText(self, coordinate):
""" """
......
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