projects
/
Plinn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oubli d'un « var ».
[Plinn.git]
/
patch.py
diff --git
a/patch.py
b/patch.py
index
5f99887
..
ebc324f
100644
(file)
--- a/
patch.py
+++ b/
patch.py
@@
-10,6
+10,7
@@
from Products.CMFCore.permissions import ListFolderContents, View, ViewManagemen
from Products.CMFCore.PortalFolder import PortalFolder as CMFPortalFolder
from Folder import PlinnFolder
from Products.CMFCore.PortalFolder import PortalFolder as CMFPortalFolder
from Folder import PlinnFolder
+from utils import getCPInfo, popCP
cmfPortalFolderSecurity = ClassSecurityInfo()
cmfPortalFolderSecurity = ClassSecurityInfo()
@@
-25,6
+26,12
@@
CMFPortalFolder.listCatalogedContents = PlinnFolder.listCatalogedContents.im_fun
cmfPortalFolderSecurity.declareProtected(AddPortalContent, 'put_upload')
CMFPortalFolder.put_upload = PlinnFolder.put_upload.im_func
cmfPortalFolderSecurity.declareProtected(AddPortalContent, 'put_upload')
CMFPortalFolder.put_upload = PlinnFolder.put_upload.im_func
+cmfPortalFolderSecurity.declarePublic('getCPInfo')
+CMFPortalFolder.getCPInfo = getCPInfo
+
+cmfPortalFolderSecurity.declarePublic('getCP')
+CMFPortalFolder.popCP = popCP
+
cmfPortalFolderSecurity.apply(CMFPortalFolder)
cmfPortalFolderSecurity.apply(CMFPortalFolder)