Commit 9acf7b82 authored by Evan Simpson's avatar Evan Simpson

Made __getitem__ check maybe_webdav_client before returning

NullResource.
parent a98b6981
...@@ -84,9 +84,9 @@ ...@@ -84,9 +84,9 @@
############################################################################## ##############################################################################
__doc__="""Object Manager __doc__="""Object Manager
$Id: ObjectManager.py,v 1.109 2000/09/05 20:52:47 brian Exp $""" $Id: ObjectManager.py,v 1.110 2000/09/11 17:55:16 evan Exp $"""
__version__='$Revision: 1.109 $'[11:-2] __version__='$Revision: 1.110 $'[11:-2]
import App.Management, Acquisition, Globals, CopySupport, Products import App.Management, Acquisition, Globals, CopySupport, Products
import os, App.FactoryDispatcher, ts_regex, Products import os, App.FactoryDispatcher, ts_regex, Products
...@@ -610,7 +610,7 @@ class ObjectManager( ...@@ -610,7 +610,7 @@ class ObjectManager(
if hasattr(self, 'REQUEST'): if hasattr(self, 'REQUEST'):
request=self.REQUEST request=self.REQUEST
method=request.get('REQUEST_METHOD', 'GET') method=request.get('REQUEST_METHOD', 'GET')
if not method in ('GET', 'POST'): if request.maybe_webdav_client and not method in ('GET', 'POST'):
return NullResource(self, key, request).__of__(self) return NullResource(self, key, request).__of__(self)
raise KeyError, key raise KeyError, key
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment