from Products.CMFCore.PortalFolder import PortalFolder as CMFPortalFolder
from Folder import PlinnFolder
+from utils import getCPInfo, popCP
cmfPortalFolderSecurity = ClassSecurityInfo()
cmfPortalFolderSecurity.declareProtected(AddPortalContent, 'put_upload')
CMFPortalFolder.put_upload = PlinnFolder.put_upload.im_func
-cmfPortalFolderSecurity.apply(CMFPortalFolder)
\ No newline at end of file
+cmfPortalFolderSecurity.declarePublic('getCPInfo')
+CMFPortalFolder.getCPInfo = getCPInfo
+
+cmfPortalFolderSecurity.declarePublic('getCP')
+CMFPortalFolder.popCP = popCP
+
+cmfPortalFolderSecurity.apply(CMFPortalFolder)
+
+
+from Products.CMFDefault.formlib.form import _EditFormMixin
+from patch_impl import _setRedirect
+_EditFormMixin._setRedirect = _setRedirect
\ No newline at end of file