Commit 586ead91 authored by Lennart Regebro's avatar Lennart Regebro

Continuing on #572. manage_DAVget is now used from the WebDAV source port as...

Continuing on #572. manage_DAVget is now used from the WebDAV source port as well as the standard HTTP port.
parent 8a23bcd0
......@@ -39,7 +39,7 @@ class WebDAVSrcHandler(zhttp_handler):
path_info = env['PATH_INFO']
if os.sep != '/':
path_info = path_info.replace(os.sep, '/')
path_info = posixpath.join(path_info, 'manage_FTPget')
path_info = posixpath.join(path_info, 'manage_DAVget')
path_info = posixpath.normpath(path_info)
env['PATH_INFO'] = path_info
......
......@@ -13,7 +13,7 @@
"""WebDAV support - resource objects."""
__version__='$Revision: 1.56 $'[11:-2]
__version__='$Revision: 1.57 $'[11:-2]
import sys, os, mimetypes, davcmds, ExtensionClass, Lockable
from common import absattr, aq_base, urlfix, rfc1123_date, tokenFinder, urlbase
......@@ -552,7 +552,9 @@ class Resource(ExtensionClass.Base, Lockable.LockableItem):
def manage_DAVget(self):
return self.manage_FTPget(self)
"""Gets the document source"""
# The default implementation calls manage_FTPget
return self.manage_FTPget()
def listDAVObjects(self):
return []
......
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