X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/e1156e7b33a4336d4cc6f7dea46a335c8277d65b..891027fea0c1660c35b7d126dd207eb64facf93b:/patch.py diff --git a/patch.py b/patch.py index 5f99887..ebc324f 100644 --- 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 utils import getCPInfo, popCP 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.declarePublic('getCPInfo') +CMFPortalFolder.getCPInfo = getCPInfo + +cmfPortalFolderSecurity.declarePublic('getCP') +CMFPortalFolder.popCP = popCP + cmfPortalFolderSecurity.apply(CMFPortalFolder)