projects
/
Plinn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ajout du slot « body » en alias à « main_no_tabs » car il est utile pour afficher...
[Plinn.git]
/
patch.py
diff --git
a/patch.py
b/patch.py
index
a5daab1
..
fe60513
100644
(file)
--- a/
patch.py
+++ b/
patch.py
@@
-3,9
+3,26
@@
"""
"""
+from AccessControl import ClassSecurityInfo
+from Products.CMFCore.permissions import ListFolderContents, View, ViewManagementScreens,\
+ ManageProperties, AddPortalFolders, AddPortalContent,\
+ ManagePortal, ModifyPortalContent
+
from Products.CMFCore.PortalFolder import PortalFolder as CMFPortalFolder
from Folder import PlinnFolder
from Products.CMFCore.PortalFolder import PortalFolder as CMFPortalFolder
from Folder import PlinnFolder
+cmfPortalFolderSecurity = ClassSecurityInfo()
+
+cmfPortalFolderSecurity.declareProtected(ListFolderContents, 'listFolderContents')
CMFPortalFolder.listFolderContents = PlinnFolder.listFolderContents.im_func
CMFPortalFolder.listFolderContents = PlinnFolder.listFolderContents.im_func
+
+cmfPortalFolderSecurity.declareProtected(ListFolderContents, 'listNearestFolderContents')
CMFPortalFolder.listNearestFolderContents = PlinnFolder.listNearestFolderContents.im_func
CMFPortalFolder.listNearestFolderContents = PlinnFolder.listNearestFolderContents.im_func
+
+cmfPortalFolderSecurity.declareProtected(ListFolderContents, 'listCatalogedContents')
CMFPortalFolder.listCatalogedContents = PlinnFolder.listCatalogedContents.im_func
CMFPortalFolder.listCatalogedContents = PlinnFolder.listCatalogedContents.im_func
+
+cmfPortalFolderSecurity.declareProtected(AddPortalContent, 'put_upload')
+CMFPortalFolder.put_upload = PlinnFolder.put_upload.im_func
+
+cmfPortalFolderSecurity.apply(CMFPortalFolder)
\ No newline at end of file