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
from utils import _checkMemberPermission
from utils import Message as _
+from utils import makeValidId
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
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