X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/e1156e7b33a4336d4cc6f7dea46a335c8277d65b..37781db84157d12cbfc6e8a454e2a2dc3846e2dc:/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)