From: Benoît Pin Date: Thu, 27 Jun 2013 08:34:27 +0000 (+0200) Subject: Import manquant. X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/e189b5bcf54e75538daed6a3c443f401e8f50c19 Import manquant. --- diff --git a/Folder.py b/Folder.py index e4959e5..76d4ee1 100644 --- a/Folder.py +++ b/Folder.py @@ -48,7 +48,7 @@ from OFS.event import ObjectWillBeMovedEvent from zope.component.factory import Factory from Acquisition import aq_base, aq_inner, aq_parent -from types import StringType +from types import StringType, NoneType from Products.CMFCore.permissions import ListFolderContents, View, ViewManagementScreens,\ ManageProperties, AddPortalFolders, AddPortalContent,\ ManagePortal, ModifyPortalContent @@ -63,6 +63,7 @@ from Products.CMFCore.interfaces import IContentish from utils import _checkMemberPermission from utils import Message as _ +from utils import makeValidId from Globals import InitializeClass from AccessControl import ClassSecurityInfo @@ -91,7 +92,8 @@ class PlinnFolder(CMFCatalogAware, PortalFolder, DefaultDublinCoreImpl) : method=request.get('REQUEST_METHOD', 'GET') if (request.maybe_webdav_client and method not in ('GET', 'POST')): - return NullResource(self, key, request).__of__(self) + id = makeValidId(self, key) + return NullResource(self, id, request).__of__(self) raise KeyError, key