[Zope-Checkins] CVS: Zope2 - BaseRequest.py:1.38
evan@serenade.digicool.com
evan@serenade.digicool.com
Fri, 11 May 2001 14:17:34 -0400
Update of /cvs-repository/Zope2/lib/python/ZPublisher
In directory serenade:/home/evan/Zope/trunk/lib/python/ZPublisher
Modified Files:
BaseRequest.py
Log Message:
Change WebDAV traversal to only turn off acquisition on the final traversal step. This prevents a conflict with VirtualHostMonster.
--- Updated File BaseRequest.py in package Zope2 --
--- BaseRequest.py 2001/03/08 18:54:48 1.37
+++ BaseRequest.py 2001/05/11 18:17:33 1.38
@@ -355,7 +355,8 @@
# heirarchy -- you'd always get the
# existing object :(
- if no_acquire_flag and hasattr(object, 'aq_base'):
+ if (no_acquire_flag and len(path) == 0 and
+ hasattr(object, 'aq_base')):
if hasattr(object.aq_base, entry_name):
subobject=getattr(object, entry_name)
else: raise AttributeError, entry_name