Commit 6389079a authored by Arnaud Fontaine's avatar Arnaud Fontaine

Hardcode getReadPermission and getWritePermission BaseCategory getters

as they are used when generating accessors and it is needed when
upgrading a site to Portal Type classes and ZODB Property
Sheets.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42974 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ee218b4
...@@ -37,6 +37,7 @@ from Products.CMFCore.utils import getToolByName ...@@ -37,6 +37,7 @@ from Products.CMFCore.utils import getToolByName
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
from Products.ERP5Type import PropertySheet from Products.ERP5Type import PropertySheet
from Products.ERP5Type.Accessor.Constant import PropertyGetter as ConstantGetter from Products.ERP5Type.Accessor.Constant import PropertyGetter as ConstantGetter
from Products.ERP5Type.Accessor.Base import Getter as BaseGetter
from Products.ERP5Type.Core.Folder import Folder from Products.ERP5Type.Core.Folder import Folder
from Products.CMFCategory.Renderer import Renderer from Products.CMFCategory.Renderer import Renderer
from Products.ERP5Type.Utils import sortValueList from Products.ERP5Type.Utils import sortValueList
...@@ -932,5 +933,13 @@ class BaseCategory(Category): ...@@ -932,5 +933,13 @@ class BaseCategory(Category):
'getBaseCategory') 'getBaseCategory')
getBaseCategory = getBaseCategoryValue getBaseCategory = getBaseCategoryValue
# Hardcode these getters as they are used when generating
# accessors
getReadPermission = BaseGetter('getReadPermission', 'read_permission',
'string')
getWritePermission = BaseGetter('getWritePermission', 'write_permission',
'string')
InitializeClass( Category ) InitializeClass( Category )
InitializeClass( BaseCategory ) InitializeClass( BaseCategory )
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