6 from AccessControl
import ClassSecurityInfo
7 from Products
.CMFCore
.permissions
import ListFolderContents
, View
, ViewManagementScreens
,\
8 ManageProperties
, AddPortalFolders
, AddPortalContent
,\
9 ManagePortal
, ModifyPortalContent
11 from Products
.CMFCore
.PortalFolder
import PortalFolder
as CMFPortalFolder
12 from Folder
import PlinnFolder
14 cmfPortalFolderSecurity
= ClassSecurityInfo()
16 cmfPortalFolderSecurity
.declareProtected(ListFolderContents
, 'listFolderContents')
17 CMFPortalFolder
.listFolderContents
= PlinnFolder
.listFolderContents
.im_func
19 cmfPortalFolderSecurity
.declareProtected(ListFolderContents
, 'listNearestFolderContents')
20 CMFPortalFolder
.listNearestFolderContents
= PlinnFolder
.listNearestFolderContents
.im_func
22 cmfPortalFolderSecurity
.declareProtected(ListFolderContents
, 'listCatalogedContents')
23 CMFPortalFolder
.listCatalogedContents
= PlinnFolder
.listCatalogedContents
.im_func
25 cmfPortalFolderSecurity
.declareProtected(AddPortalContent
, 'put_upload')
26 CMFPortalFolder
.put_upload
= PlinnFolder
.put_upload
.im_func
28 cmfPortalFolderSecurity
.apply(CMFPortalFolder
)