From 221f6152edd48641c6b905bef8d2593e6b5e97eb Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Mon, 3 May 2004 16:04:36 +0000
Subject: [PATCH] removed category accessors (use of acquisition of properties
 instead)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@810 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Entity.py | 189 --------------------------------
 1 file changed, 189 deletions(-)

diff --git a/product/ERP5/Document/Entity.py b/product/ERP5/Document/Entity.py
index 1a77171e82..0c994d036f 100755
--- a/product/ERP5/Document/Entity.py
+++ b/product/ERP5/Document/Entity.py
@@ -101,76 +101,6 @@ class Entity:
         except:
           return ''
 
-    security.declareProtected(Permissions.View, 'getDefaultCareerGrade')
-    def getDefaultCareerGrade(self):
-        """
-          Returns the default address city as a text string
-        """
-        try:
-          return self.getDefaultCareerValue().getGrade()
-        except:
-          return ''
-
-    security.declareProtected(Permissions.View, 'getDefaultCareerRole')
-    def getDefaultCareerRole(self):
-        """
-          Returns the default address city as a text string
-        """
-        try:
-          return self.getDefaultCareerValue().getRole()
-        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):
-        """
-          Returns the default address city as a text string
-        """
-        try:
-          return self.getDefaultCareerValue().getSkillList()
-        except:
-          return ''
-
     security.declareProtected(Permissions.View, 'getDefaultCareerStartDate')
     def getDefaultCareerStartDate(self):
         """
@@ -295,62 +225,6 @@ class Entity:
         self._setDefaultCareerDescription(coordinate)
         self.reindexObject()
 
-    security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultCareerGrade')
-    def setDefaultCareerGrade(self, coordinate):
-        """
-          Updates the default address from a standard text string
-        """
-        self._setDefaultCareerGrade(coordinate)
-        self.reindexObject()
-
-    security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultCareerRole')
-    def setDefaultCareerRole(self, coordinate):
-        """
-          Updates the default address from a standard text string
-        """
-        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):
-        """
-          Updates the default address from a standard text string
-        """
-        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):
         """
@@ -520,69 +394,6 @@ class Entity:
                             )
         self.default_career.setDescription(coordinate)
 
-    security.declarePrivate('_setDefaultCareerGrade')
-    def _setDefaultCareerGrade(self, coordinate):
-        assertAttributePortalType(self, 'default_career', 'Career')
-        if not hasattr(self,'default_career'):
-          self.invokeFactory( type_name='Career'
-                            , id='default_career'
-                            )
-        self.default_career.setGrade(coordinate)
-
-    security.declarePrivate('_setDefaultCareerRole')
-    def _setDefaultCareerRole(self, coordinate):
-        assertAttributePortalType(self, 'default_career', 'Career')
-        if not hasattr(self,'default_career'):
-          self.invokeFactory( type_name='Career'
-                            , id='default_career'
-                            )
-        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')
-        if not hasattr(self,'default_career'):
-          self.invokeFactory( type_name='Career'
-                            , id='default_career'
-                            )
-        self.default_career.setSkillList(coordinate)
-
     security.declarePrivate('_setDefaultCareerStartDate')
     def _setDefaultCareerStartDate(self, coordinate):
         assertAttributePortalType(self, 'default_career', 'Career')
-- 
2.30.9