summaryrefslogtreecommitdiff
path: root/addons/document_webdav/webdav_server.py
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-10-12 13:40:35 +0300
committerP. Christeas <p_christ@hol.gr>2010-10-12 13:40:35 +0300
commit1b301705258289e13bdcc64e063420792839fe96 (patch)
tree4e9b54eed0623b6ed0c71c97043e189c760614b6 /addons/document_webdav/webdav_server.py
parentf5117544fa0a0c18d63bbe8acba8882d13c39bb7 (diff)
doc webdav: switch on the DAV v2 features
The underlying python-webdav supports some emulation for lock/unlock, so try to use that. bzr revid: p_christ@hol.gr-20101012104035-jffog0w1dco2lo9i
Diffstat (limited to 'addons/document_webdav/webdav_server.py')
-rw-r--r--addons/document_webdav/webdav_server.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/document_webdav/webdav_server.py b/addons/document_webdav/webdav_server.py
index c86cde2b096..7e4bb69fa0a 100644
--- a/addons/document_webdav/webdav_server.py
+++ b/addons/document_webdav/webdav_server.py
@@ -57,7 +57,7 @@ def OpenDAVConfig(**kw):
class DAVHandler(HttpOptions, FixSendError, DAVRequestHandler):
verbose = False
protocol_version = 'HTTP/1.1'
- _HTTP_OPTIONS= { 'DAV' : ['1',],
+ _HTTP_OPTIONS= { 'DAV' : ['1', '2'],
'Allow' : [ 'GET', 'HEAD', 'COPY', 'MOVE', 'POST', 'PUT',
'PROPFIND', 'PROPPATCH', 'OPTIONS', 'MKCOL',
'DELETE', 'TRACE', 'REPORT', ]
@@ -265,8 +265,7 @@ try:
handler.debug = config.get_misc('webdav','debug',True)
_dc = { 'verbose' : verbose,
'directory' : directory,
- 'lockemulation' : False,
-
+ 'lockemulation' : True,
}
conf = OpenDAVConfig(**_dc)