[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ - Collector
#1852: fixed wrong URL construction in webdav.davcmds
Andreas Jung
andreas at andreas-jung.com
Thu Jul 28 06:14:13 EDT 2005
Log message for revision 37530:
- Collector #1852: fixed wrong URL construction in webdav.davcmds
Changed:
U Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
U Zope/branches/Zope-2_8-branch/lib/python/webdav/davcmds.py
-=-
Modified: Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
===================================================================
--- Zope/branches/Zope-2_8-branch/doc/CHANGES.txt 2005-07-28 10:12:36 UTC (rev 37529)
+++ Zope/branches/Zope-2_8-branch/doc/CHANGES.txt 2005-07-28 10:14:13 UTC (rev 37530)
@@ -38,6 +38,8 @@
Bugs Fixed
+ - Collector #1852: fixed wrong URL construction in webdav.davcmds
+
- Collector #1844: fixed whitespace handling in the ZMI "Find" tab
- Collector #1813: removed spurious inclusion of CMFBTreeFolder.
Modified: Zope/branches/Zope-2_8-branch/lib/python/webdav/davcmds.py
===================================================================
--- Zope/branches/Zope-2_8-branch/lib/python/webdav/davcmds.py 2005-07-28 10:12:36 UTC (rev 37529)
+++ Zope/branches/Zope-2_8-branch/lib/python/webdav/davcmds.py 2005-07-28 10:14:13 UTC (rev 37530)
@@ -16,7 +16,7 @@
$Id$
"""
-import sys, os
+import sys
from common import absattr, aq_base, urlfix, urlbase
from OFS.PropertySheets import DAVProperties
from LockItem import LockItem
@@ -29,6 +29,7 @@
from zExceptions import BadRequest, Forbidden
from common import isDavCollection
from common import PreconditionFailed
+from ZConfig.url import urljoin
import transaction
def safe_quote(url, mark=r'%'):
@@ -162,7 +163,7 @@
if dflag:
ob._p_deactivate()
elif hasattr(ob, '__dav_resource__'):
- uri=os.path.join(url, absattr(ob.id))
+ uri=urljoin(url, absattr(ob.id))
depth=depth=='infinity' and depth or 0
self.apply(ob, uri, depth, result, top=0)
if dflag:
@@ -402,7 +403,7 @@
if depth == 'infinity' and iscol:
for ob in obj.objectValues():
if hasattr(obj, '__dav_resource__'):
- uri = os.path.join(url, absattr(ob.id))
+ uri = urljoin(url, absattr(ob.id))
self.apply(ob, creator, depth, token, result,
uri, top=0)
if not top:
@@ -465,7 +466,7 @@
for ob in obj.objectValues():
if hasattr(ob, '__dav_resource__') and \
WriteLockInterface.isImplementedBy(ob):
- uri = os.path.join(url, absattr(ob.id))
+ uri = urljoin(url, absattr(ob.id))
self.apply(ob, token, uri, result, top=0)
if not top:
return result
@@ -519,7 +520,7 @@
for ob in obj.objectValues():
dflag = hasattr(ob,'_p_changed') and (ob._p_changed == None)
if hasattr(ob, '__dav_resource__'):
- uri = os.path.join(url, absattr(ob.id))
+ uri = urljoin(url, absattr(ob.id))
self.apply(ob, token, user, uri, result, top=0)
if dflag:
ob._p_deactivate()
More information about the Zope-Checkins
mailing list